Sha256: f2dcbdeb183b4e9fe37da0c0dde7e7fa3267972f7962f7be7eefd8ab3ccabaa2
Contents?: true
Size: 500 Bytes
Versions: 4
Compression:
Stored size: 500 Bytes
Contents
module Command class ExecuteError < StandardError; end class BaseCommand attr_reader :rvm_prefix, :options def initialize(rvm_prefix = nil, options = {}) @rvm_prefix = rvm_prefix @options = options end def execute system(name) or raise Command::ExecuteError end def cancel raise NotImplementedError end def name raise NotImplementedError end private def clean(cmd) cmd.gsub(/\s+/, ' ').strip end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pumper-1.3.0 | lib/command/base_command.rb |
pumper-1.2.0 | lib/command/base_command.rb |
pumper-1.0.1 | lib/command/base_command.rb |
pumper-0.0.1 | lib/command/base_command.rb |