Class: MonkeyButler::Targets::Base

Inherits:
Thor
  • Object
show all
Includes:
Actions, Thor::Actions
Defined in:
lib/monkey_butler/targets/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Actions

#bundle, #git, #git_add, #truncate_database, #unique_tag_for_version

Class Method Details

.nameObject



13
14
15
# File 'lib/monkey_butler/targets/base.rb', line 13

def name
  "#{self}".split('::').last.gsub(/Target$/, '').downcase
end

.register_with_cli(cli) ⇒ Object



17
18
19
20
# File 'lib/monkey_butler/targets/base.rb', line 17

def register_with_cli(cli)
  # Allows targets a chance to configure the CLI
  # This is an ideal place to register any options, tweak description, etc.
end

.source_rootObject



9
10
11
# File 'lib/monkey_butler/targets/base.rb', line 9

def source_root
  File.join File.dirname(__FILE__), name
end

Instance Method Details

#dropObject



63
64
65
# File 'lib/monkey_butler/targets/base.rb', line 63

def drop
  # Default implementation does nothing
end

#dumpObject



53
54
55
# File 'lib/monkey_butler/targets/base.rb', line 53

def dump
  # Default implementation does nothing
end

#generateObject



38
39
40
# File 'lib/monkey_butler/targets/base.rb', line 38

def generate
  # Default implementation does nothing
end

#initObject



28
29
30
# File 'lib/monkey_butler/targets/base.rb', line 28

def init
  # Default implementation does nothing
end

#loadObject



58
59
60
# File 'lib/monkey_butler/targets/base.rb', line 58

def load
  # Default implementation does nothing
end

#new(path) ⇒ Object



33
34
35
# File 'lib/monkey_butler/targets/base.rb', line 33

def new(path)
  # Default implementation does nothing
end

#pushObject



43
44
45
# File 'lib/monkey_butler/targets/base.rb', line 43

def push
  # Default implementation does nothing
end

#validateObject



48
49
50
# File 'lib/monkey_butler/targets/base.rb', line 48

def validate
  # Default implementation does nothing
end