Class: SmartMachine::Commands::GridCommands::Prereceiver
- Inherits:
-
SubThor
- Object
- Thor
- SubThor
- SmartMachine::Commands::GridCommands::Prereceiver
show all
- Includes:
- Utilities
- Defined in:
- lib/smart_machine/commands/grid_commands/prereceiver.rb
Instance Method Summary
collapse
Methods inherited from SubThor
banner, subcommand_prefix
Instance Method Details
#down ⇒ Object
42
43
44
45
46
47
48
49
|
# File 'lib/smart_machine/commands/grid_commands/prereceiver.rb', line 42
def down
inside_machine_dir do
with_docker_running do
machine = SmartMachine::Machine.new
machine.run_on_machine commands: "smartengine grid prereceiver downer"
end
end
end
|
#downer ⇒ Object
79
80
81
82
83
84
85
|
# File 'lib/smart_machine/commands/grid_commands/prereceiver.rb', line 79
def downer
inside_engine_machine_dir do
name, config = SmartMachine.config.grids.prereceiver.first
prereceiver = SmartMachine::Grids::Prereceiver.new(name: name.to_s)
prereceiver.downer
end
end
|
#install ⇒ Object
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/smart_machine/commands/grid_commands/prereceiver.rb', line 8
def install
inside_machine_dir do
with_docker_running do
puts "-----> Installing Prereceiver"
machine = SmartMachine::Machine.new
machine.run_on_machine commands: "smartengine grid prereceiver installer"
puts "-----> Prereceiver Installation Complete"
end
end
end
|
#installer ⇒ Object
52
53
54
55
56
57
58
|
# File 'lib/smart_machine/commands/grid_commands/prereceiver.rb', line 52
def installer
inside_engine_machine_dir do
name, config = SmartMachine.config.grids.prereceiver.first
prereceiver = SmartMachine::Grids::Prereceiver.new(name: name.to_s)
prereceiver.installer
end
end
|
#prereceive(appname, username, oldrev, newrev, refname) ⇒ Object
88
89
90
91
92
|
# File 'lib/smart_machine/commands/grid_commands/prereceiver.rb', line 88
def prereceive(appname, username, oldrev, newrev, refname)
name, config = SmartMachine.config.grids.prereceiver.first
prereceiver = SmartMachine::Grids::Prereceiver.new(name: name.to_s)
prereceiver.prereceive(appname: appname, username: username, oldrev: oldrev, newrev: newrev, refname: refname)
end
|
#uninstall ⇒ Object
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/smart_machine/commands/grid_commands/prereceiver.rb', line 20
def uninstall
inside_machine_dir do
with_docker_running do
puts "-----> Installing Prereceiver"
machine = SmartMachine::Machine.new
machine.run_on_machine commands: "smartengine grid prereceiver uninstaller"
puts "-----> Prereceiver Installation Complete"
end
end
end
|
#uninstaller ⇒ Object
61
62
63
64
65
66
67
|
# File 'lib/smart_machine/commands/grid_commands/prereceiver.rb', line 61
def uninstaller
inside_engine_machine_dir do
name, config = SmartMachine.config.grids.prereceiver.first
prereceiver = SmartMachine::Grids::Prereceiver.new(name: name.to_s)
prereceiver.uninstaller
end
end
|
#up ⇒ Object
32
33
34
35
36
37
38
39
|
# File 'lib/smart_machine/commands/grid_commands/prereceiver.rb', line 32
def up
inside_machine_dir do
with_docker_running do
machine = SmartMachine::Machine.new
machine.run_on_machine commands: "smartengine grid prereceiver uper"
end
end
end
|
#uper ⇒ Object
70
71
72
73
74
75
76
|
# File 'lib/smart_machine/commands/grid_commands/prereceiver.rb', line 70
def uper
inside_engine_machine_dir do
name, config = SmartMachine.config.grids.prereceiver.first
prereceiver = SmartMachine::Grids::Prereceiver.new(name: name.to_s)
prereceiver.uper
end
end
|