Class: EY::Serverside::Callbacks::ServiceHook

Inherits:
BaseHook
  • Object
show all
Defined in:
lib/engineyard-serverside/callbacks/service_hook.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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