Sha256: 958c0b2d8b90ed23300b419c0c86f8cd07a97b6664121a983bc8ee052dfda1dc
Contents?: true
Size: 459 Bytes
Versions: 3
Compression:
Stored size: 459 Bytes
Contents
module Birdwatcher module Commands class Shell < Birdwatcher::Command self.meta = { :description => "Execute shell command", :names => %w(shell), :usage => "shell COMMAND" } def run if !arguments? error("You must provide a shell command to execute") return false end command = arguments.join(" ") output `#{command}` end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
birdwatcher-0.4.0 | lib/birdwatcher/commands/shell.rb |
birdwatcher-0.3.1 | lib/birdwatcher/commands/shell.rb |
birdwatcher-0.1.0 | lib/birdwatcher/commands/shell.rb |