Sha256: d799a726e903a6e72831031ee479128b0d9f6c2926804eb5fdf2d8545ddfa3ba

Contents?: true

Size: 341 Bytes

Versions: 3

Compression:

Stored size: 341 Bytes

Contents

module DevboxLauncher
  class MutagenConfig

    attr_reader :config

    def initialize(config)
      @config = config
    end

    def configured?
      return false if config.nil?
      [alpha_dir, beta_dir].all?(&:present?)
    end

    def alpha_dir
      config[:alpha]
    end

    def beta_dir
      config[:beta]
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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