Sha256: 1255b2e85358453b32ce3bbd3af56528bd942dbad3fbfbb4c928aab894b01a2d

Contents?: true

Size: 527 Bytes

Versions: 3

Compression:

Stored size: 527 Bytes

Contents

module DevboxLauncher
  class BoxConfig

    DEFAULT_IDENTIFY_FILE_PATH = "~/.ssh/google_compute_engine".freeze

    attr_reader :config

    def initialize(config)
      @config = config.with_indifferent_access
    end

    def mutagen_config
      MutagenConfig.new(config[:mutagen])
    end

    def project
      config[:project]
    end

    def zone
      config[:zone]
    end

    def user
      config[:user]
    end

    def identity_file
      config[:identity_file] || DEFAULT_IDENTIFY_FILE_PATH
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
devbox_launcher-1.1.1 lib/devbox_launcher/models/box_config.rb
devbox_launcher-1.1.0 lib/devbox_launcher/models/box_config.rb
devbox_launcher-1.0.0 lib/devbox_launcher/models/box_config.rb