class Paratrooper::Configuration

Attributes

api_key[RW]
app_name[RW]
branch=[RW]
branch_name[RW]
deployment_host[W]
heroku[W]
http_client[W]
match_tag=[RW]
match_tag_name[RW]
migration_check[W]
protocol[W]
screen_notifier[W]
source_control[W]
system_caller[W]
tag=[RW]
tag_name[RW]

Public Instance Methods

attributes=(attrs) click to toggle source
# File lib/paratrooper/configuration.rb, line 22
def attributes=(attrs)
  attrs.each do |method, value|
    public_send("#{method}=", value)
  end
end
branch_name?() click to toggle source
# File lib/paratrooper/configuration.rb, line 28
def branch_name?
  !branch_name.to_s.strip.empty?
end
deployment_host() click to toggle source
# File lib/paratrooper/configuration.rb, line 56
def deployment_host
  @deployment_host ||= 'heroku.com'
end
force=(val)
Alias for: force_push=
force_push() click to toggle source
# File lib/paratrooper/configuration.rb, line 81
def force_push
  @force_push ||= false
end
force_push=(val) click to toggle source
# File lib/paratrooper/configuration.rb, line 76
def force_push=(val)
  @force_push= !!val
end
Also aliased as: force=
force_push?() click to toggle source
# File lib/paratrooper/configuration.rb, line 85
def force_push?
  @force_push
end
heroku() click to toggle source
# File lib/paratrooper/configuration.rb, line 36
def heroku
  @heroku ||= HerokuWrapper.new(app_name)
end
http_client() click to toggle source
# File lib/paratrooper/configuration.rb, line 60
def http_client
  @http_client ||= HttpClientWrapper.new
end
maintenance() click to toggle source
# File lib/paratrooper/configuration.rb, line 64
def maintenance
  @maintenance ||= false
end
maintenance=(val) click to toggle source
# File lib/paratrooper/configuration.rb, line 68
def maintenance=(val)
  @maintenance = !!val
end
maintenance?() click to toggle source
# File lib/paratrooper/configuration.rb, line 72
def maintenance?
  @maintenance
end
migration_check() click to toggle source
# File lib/paratrooper/configuration.rb, line 32
def migration_check
  @migration_check ||= PendingMigrationCheck.new(source_control.deployment_sha, heroku, system_caller)
end
notifiers() click to toggle source
# File lib/paratrooper/configuration.rb, line 48
def notifiers
  @notifiers ||= [@screen_notifier]
end
notifiers=(notifers) click to toggle source
# File lib/paratrooper/configuration.rb, line 44
def notifiers=(notifers)
  @notifiers = Array(notifers)
end
protocol() click to toggle source
# File lib/paratrooper/configuration.rb, line 52
def protocol
  @protocol ||= 'http'
end
screen_notifier() click to toggle source
# File lib/paratrooper/configuration.rb, line 40
def screen_notifier
  @screen_notifier ||= Notifiers::ScreenNotifier.new
end
source_control() click to toggle source
# File lib/paratrooper/configuration.rb, line 93
def source_control
  @source_control ||= SourceControl.new(self)
end
system_caller() click to toggle source
# File lib/paratrooper/configuration.rb, line 89
def system_caller
  @system_caller ||= SystemCaller.new
end