Sha256: 478d68f4f40568ee14e30b611936233723ddc243e794c7c491c661c701185ecd
Contents?: true
Size: 595 Bytes
Versions: 3
Compression:
Stored size: 595 Bytes
Contents
require_relative './build.rb' require_relative './test.rb' require_relative './add.rb' require_relative './commit.rb' class Commands < Hash def initialize Build.discover_commands self Test.discover_commands self Add.discover_commands self Commit.discover_commands self end def execute_command command puts Color.yellow + command + Color.clear puts " " puts `#{command}` if $? != 0 raise Color.bright_yellow + "`" + Color.green + command + Color.bright_yellow + "`" + Color.clear + " has exit code " + $?.to_s end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dev_tasks-0.0.6 | lib/commands.rb |
dev_tasks-0.0.5 | lib/commands.rb |
dev_tasks-0.0.4 | lib/commands.rb |