Sha256: ad84173e084e18212c532add98e5f730ae23dc026efb6efca7ad31c48dac33f2

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

module SrvManager
  class Command

    attr_reader :text
    attr_reader :dir
    attr_reader :env
    attr_reader :rvm

    def initialize(text, options={})
      @text = text
      @dir = File.expand_path options[:dir].to_s
      @env = options[:env] || {}
      @rvm = options[:rvm] || false
    end

    def to_hash
      {text: text, dir: dir, env: env, rvm: rvm}
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
srv_manager-0.0.4 lib/srv_manager/command.rb
srv_manager-0.0.3 lib/srv_manager/command.rb
srv_manager-0.0.2 lib/srv_manager/command.rb
srv_manager-0.0.1 lib/srv_manager/command.rb