Sha256: 71af4335f867a2c3edc297d01691e55c9d7901c882de232448a10fe72f204733
Contents?: true
Size: 540 Bytes
Versions: 2
Compression:
Stored size: 540 Bytes
Contents
module Cumuli class CLI class Commander attr_reader :args def initialize(args) @args = args end def build "#{rvm_preface} foreman start #{args.foreman_options}" end def rvm_preface "rvm ruby-#{rvm_version} exec" if rvmrc? end def rvmrc_descriptor './.rvmrc' end def rvmrc? File.exist?(rvmrc_descriptor) end def rvm_version File.read(rvmrc_descriptor).match(/(\d\.\d\.\d@\w+)/)[0] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cumuli-0.2.1 | lib/cumuli/cli/commander.rb |
cumuli-0.2.0 | lib/cumuli/cli/commander.rb |