Sha256: d69acfb8c9435a7430583b24ff9692a19fe4c1b4d8edd09ae83e8bfc3a8a2379

Contents?: true

Size: 405 Bytes

Versions: 7

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Rubysmith
  module CLI
    module Actions
      # Stores Docker flag.
      class Docker < Sod::Action
        include Import[:settings]

        description "Add Docker support."

        on "--[no-]docker"

        default { Container[:settings].build_docker }

        def call(boolean) = settings.build_docker = boolean
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/cli/actions/docker.rb
rubysmith-7.8.0 lib/rubysmith/cli/actions/docker.rb
rubysmith-7.7.0 lib/rubysmith/cli/actions/docker.rb
rubysmith-7.6.0 lib/rubysmith/cli/actions/docker.rb
rubysmith-7.5.0 lib/rubysmith/cli/actions/docker.rb
rubysmith-7.4.0 lib/rubysmith/cli/actions/docker.rb
rubysmith-7.3.0 lib/rubysmith/cli/actions/docker.rb