lib/rubysmith/cli/actions/guard.rb in rubysmith-5.1.0 vs lib/rubysmith/cli/actions/guard.rb in rubysmith-5.2.0
- old
+ new
@@ -1,25 +1,22 @@
# frozen_string_literal: true
-require "refinements/structs"
require "sod"
module Rubysmith
module CLI
module Actions
# Stores Guard flag.
class Guard < Sod::Action
include Import[:input]
- using ::Refinements::Structs
-
description "Add Guard gem."
on "--[no-]guard"
default { Container[:configuration].build_guard }
- def call(value = default) = input.merge!(build_guard: value)
+ def call(value = default) = input.build_guard = value
end
end
end
end