Sha256: 4eb57a12c267c61e7f9655bcac13b9ff6497e8a3056409303bd7282fde66d126

Contents?: true

Size: 555 Bytes

Versions: 10

Compression:

Stored size: 555 Bytes

Contents

require 'rascal'

module Rascal
  module CLI
    class Update < Base
      def initialize(thor, options, environment_name)
        @environment_name = if options[:all]
          fail_with_error('Cannot give --all and an environment name!') if environment_name
          :all
        else
          environment_name
        end
        super(thor, options)
      end

      def run
        images = []
        each_environment(@environment_name) do |environment|
          images += environment.update(skip: images)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rascal-0.3.7 lib/rascal/cli/update.rb
rascal-0.3.6 lib/rascal/cli/update.rb
rascal-0.3.5 lib/rascal/cli/update.rb
rascal-0.3.4 lib/rascal/cli/update.rb
rascal-0.3.3 lib/rascal/cli/update.rb
rascal-0.3.2 lib/rascal/cli/update.rb
rascal-0.3.1 lib/rascal/cli/update.rb
rascal-0.3.0 lib/rascal/cli/update.rb
rascal-0.2.1 lib/rascal/cli/update.rb
rascal-0.2.0 lib/rascal/cli/update.rb