Skip to content

Commit

Permalink
fix: do not blow up if mutagen is not configured
Browse files Browse the repository at this point in the history
If no mutagen config exists, don't bother checking alpha and beta
settings
  • Loading branch information
ramontayag committed Sep 22, 2021
1 parent 716254b commit e444bd8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.1] - 2021-09-22
### Fixed
- Do not blow up if mutagen is not configured

## [0.6.0] - 2021-09-21
### Changed
- Ability to configure multiple boxes under one account
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
devbox_launcher (0.6.0)
devbox_launcher (0.6.1)
activesupport (~> 6.0)
bcrypt_pbkdf (~> 1.0)
ed25519 (~> 1.2)
Expand Down
3 changes: 2 additions & 1 deletion lib/devbox_launcher/models/mutagen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ def initialize(config)
end

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

def alpha_dir
Expand Down
2 changes: 1 addition & 1 deletion lib/devbox_launcher/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module DevboxLauncher
VERSION = "0.6.0"
VERSION = "0.6.1"
end

0 comments on commit e444bd8

Please sign in to comment.