Sha256: 7f46fd70f7284ed3742f0e3db638bca14dbeba6fa76b82dec4f4bb7995f19a3b

Contents?: true

Size: 411 Bytes

Versions: 3

Compression:

Stored size: 411 Bytes

Contents

module Birdwatcher
  module Commands
    class Run < Birdwatcher::Command
      self.meta = {
        :description => "Run current module",
        :names       => %w(run execute),
        :usage       => "run"
      }

      def run
        if !console.current_module
          error("No module loaded")
          return false
        end
        console.current_module.new.execute
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
birdwatcher-0.4.0 lib/birdwatcher/commands/run.rb
birdwatcher-0.3.1 lib/birdwatcher/commands/run.rb
birdwatcher-0.1.0 lib/birdwatcher/commands/run.rb