Class: EY::Serverside::Callbacks::ServiceHook
- Inherits:
-
BaseHook
- Object
- BaseHook
- EY::Serverside::Callbacks::ServiceHook
- Defined in:
- lib/engineyard-serverside/callbacks/service_hook.rb
Instance Attribute Summary collapse
-
#service_name ⇒ Object
readonly
Returns the value of attribute service_name.
Instance Method Summary collapse
-
#initialize(file_path) ⇒ ServiceHook
constructor
A new instance of ServiceHook.
Constructor Details
#initialize(file_path) ⇒ ServiceHook
Returns a new instance of ServiceHook.
12 13 14 15 |
# File 'lib/engineyard-serverside/callbacks/service_hook.rb', line 12 def initialize(file_path) super @service_name = path.dirname.basename.to_s end |
Instance Attribute Details
#service_name ⇒ Object (readonly)
Returns the value of attribute service_name.
10 11 12 |
# File 'lib/engineyard-serverside/callbacks/service_hook.rb', line 10 def service_name @service_name end |