Class: AppUp::Hooks::Hook

Inherits:
Struct
  • Object
show all
Defined in:
lib/app_up/hooks/hook.rb

Direct Known Subclasses

RailsUp

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filesObject

Returns the value of attribute files

Returns:

  • (Object)

    the current value of files



5
6
7
# File 'lib/app_up/hooks/hook.rb', line 5

def files
  @files
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



5
6
7
# File 'lib/app_up/hooks/hook.rb', line 5

def options
  @options
end

#shellObject

Returns the value of attribute shell

Returns:

  • (Object)

    the current value of shell



5
6
7
# File 'lib/app_up/hooks/hook.rb', line 5

def shell
  @shell
end

Class Method Details

.run(shell, files, options) ⇒ Object



7
8
9
# File 'lib/app_up/hooks/hook.rb', line 7

def self.run(shell, files, options)
  new(shell, files, options).run
end

Instance Method Details

#runObject



11
12
13
# File 'lib/app_up/hooks/hook.rb', line 11

def run
  raise "Must be implemented"
end