Skip to content
Auxiliary commands for the RubyMotion's `motion` executable.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
doctor.rb
licence.txt
pulse.rb
wip.rb

README.md

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
You can’t perform that action at this time.