Class: Paratrooper::AssetPrecompile::Notifier

Inherits:
Notifier
  • Object
show all
Defined in:
lib/paratrooper-asset_precompile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Notifier

Returns a new instance of Notifier.



10
11
12
# File 'lib/paratrooper-asset_precompile.rb', line 10

def initialize(options = {})
  @system_caller = options[:system_caller] || Paratrooper::SystemCaller.new
end

Instance Attribute Details

#system_callerObject (readonly)

Returns the value of attribute system_caller.



8
9
10
# File 'lib/paratrooper-asset_precompile.rb', line 8

def system_caller
  @system_caller
end

Instance Method Details

#app_restart(options = {}) ⇒ Object



14
15
16
17
# File 'lib/paratrooper-asset_precompile.rb', line 14

def app_restart(options = {})
  command = "heroku run rake assets:precompile --app #{options[:app_name]}"
  system_caller.execute(command)
end