Sha256: 5fb6b4544f0490a4789ac7cdce4fe1d444f85bacf74dcdfd3a785ddeac65b06d

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true
require 'bundler'

module  Chamber
module  Commands
module  Heroku
  def initialize(options = {})
    super

    self.app = options[:app]
  end

  protected

  attr_accessor :app

  def configuration
    @configuration ||= heroku('config --shell').chomp
  end

  def heroku(command)
    Bundler.with_clean_env { `heroku #{command}#{app_option}` }
  end

  def app_option
    app ? " --app #{app}" : ''
  end
end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chamber-2.10.2 lib/chamber/commands/heroku.rb
chamber-2.10.1 lib/chamber/commands/heroku.rb
chamber-2.10.0 lib/chamber/commands/heroku.rb
chamber-2.9.1 lib/chamber/commands/heroku.rb
chamber-2.9.0 lib/chamber/commands/heroku.rb