Class: SmartMachine::Commands::GridCommands::Nginx
- Inherits:
-
SubThor
- Object
- Thor
- SubThor
- SmartMachine::Commands::GridCommands::Nginx
show all
- Includes:
- Utilities
- Defined in:
- lib/smart_machine/commands/grid_commands/nginx.rb
Instance Method Summary
collapse
Methods inherited from SubThor
banner, subcommand_prefix
Instance Method Details
#down ⇒ Object
18
19
20
21
22
23
24
25
|
# File 'lib/smart_machine/commands/grid_commands/nginx.rb', line 18
def down
inside_machine_dir do
with_docker_running do
machine = SmartMachine::Machine.new
machine.run_on_machine commands: "smartengine grid nginx downer"
end
end
end
|
#downer ⇒ Object
44
45
46
47
48
49
|
# File 'lib/smart_machine/commands/grid_commands/nginx.rb', line 44
def downer
inside_engine_machine_dir do
nginx = SmartMachine::Grids::Nginx.new
nginx.downer
end
end
|
#up ⇒ Object
8
9
10
11
12
13
14
15
|
# File 'lib/smart_machine/commands/grid_commands/nginx.rb', line 8
def up
inside_machine_dir do
with_docker_running do
machine = SmartMachine::Machine.new
machine.run_on_machine commands: "smartengine grid nginx uper"
end
end
end
|
#uper ⇒ Object
36
37
38
39
40
41
|
# File 'lib/smart_machine/commands/grid_commands/nginx.rb', line 36
def uper
inside_engine_machine_dir do
nginx = SmartMachine::Grids::Nginx.new
nginx.uper
end
end
|
#users_edit ⇒ Object
29
30
31
32
33
|
# File 'lib/smart_machine/commands/grid_commands/nginx.rb', line 29
def users_edit
inside_machine_dir do
system("#{ENV['EDITOR']} config/users.yml")
end
end
|