Skip to content

amirrajan/rubymotion-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

These are auxiliary RubyMotion commands. Some are provided by the community. Some are provided by RubyMotion proper. Having these commands outside of RubyMotion allows for out of band release/updates to the open source pieces of RubyMotion.

To author a command, create a starting point:

module Motion; class Command
  class YourCommand < Command
    self.summary = "summary"
    self.description = "summary"

    def run
       puts "hello world"
    end
  end
end; end

You can locally run the command. Start irb and execute the following:

>$:.unshift '/Library/RubyMotion/lib'
>load '/Library/RubyMotion/lib/motion/command.rb'
>load './your_command.rb'
>c = Motion::Command::YourCommand.new []
>c.run

If you need to make updates, change the source file and run:

load './your_command.rb'
c.run

About

Auxiliary commands for the RubyMotion's `motion` executable.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages