Sha256: 38a71725fe4356d497070419d759a3c810c73024f464d5f1974e7a5dc0121fa2

Contents?: true

Size: 516 Bytes

Versions: 2

Compression:

Stored size: 516 Bytes

Contents

# frozen_string_literal: true

require 'json'
require 'chamber/commands/cloud/base'

module  Chamber
module  Commands
module  Cloud
class   Pull < Chamber::Commands::Cloud::Base
  attr_accessor :target_file

  def initialize(options = {})
    super

    self.target_file = options[:into]
  end

  def call
    if target_file
      shell.create_file(target_file,
                        ::JSON.pretty_generate(adapter.environment_variables))
    else
      adapter.environment_variables
    end
  end
end
end
end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chamber-2.13.1 lib/chamber/commands/cloud/pull.rb
chamber-2.13.0 lib/chamber/commands/cloud/pull.rb