Class: Paratrooper::AssetPrecompile::Notifier
- Inherits:
-
Notifier
- Object
- Notifier
- Paratrooper::AssetPrecompile::Notifier
- Defined in:
- lib/paratrooper-asset_precompile.rb
Instance Attribute Summary collapse
-
#system_caller ⇒ Object
readonly
Returns the value of attribute system_caller.
Instance Method Summary collapse
- #app_restart(options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ Notifier
constructor
A new instance of Notifier.
Constructor Details
#initialize(options = {}) ⇒ Notifier
Returns a new instance of Notifier.
10 11 12 |
# File 'lib/paratrooper-asset_precompile.rb', line 10 def initialize( = {}) @system_caller = [:system_caller] || Paratrooper::SystemCaller.new end |
Instance Attribute Details
#system_caller ⇒ Object (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( = {}) command = "heroku run rake assets:precompile --app #{[:app_name]}" system_caller.execute(command) end |