Class: DevboxLauncher::Mutagen
- Inherits:
-
Object
- Object
- DevboxLauncher::Mutagen
- Defined in:
- lib/devbox_launcher/models/mutagen.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #alpha_dir ⇒ Object
- #beta_dir ⇒ Object
- #configured? ⇒ Boolean
-
#initialize(config) ⇒ Mutagen
constructor
A new instance of Mutagen.
Constructor Details
#initialize(config) ⇒ Mutagen
Returns a new instance of Mutagen.
6 7 8 |
# File 'lib/devbox_launcher/models/mutagen.rb', line 6 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/devbox_launcher/models/mutagen.rb', line 4 def config @config end |
Instance Method Details
#alpha_dir ⇒ Object
15 16 17 |
# File 'lib/devbox_launcher/models/mutagen.rb', line 15 def alpha_dir config[:alpha] end |
#beta_dir ⇒ Object
19 20 21 |
# File 'lib/devbox_launcher/models/mutagen.rb', line 19 def beta_dir config[:beta] end |
#configured? ⇒ Boolean
10 11 12 13 |
# File 'lib/devbox_launcher/models/mutagen.rb', line 10 def configured? return false if config.nil? [alpha_dir, beta_dir].all?(&:present?) end |