Sha256: d9787857b93bfe6c83bb7dc6273ebaaa6563a2850e78439e657dcf79cf6860c0
Contents?: true
Size: 1.37 KB
Versions: 10
Compression:
Stored size: 1.37 KB
Contents
module SmartMachine module Commands module GridCommands class Nginx < SubThor include Utilities desc "up", "Take UP the nginx grid" 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 desc "down", "Take DOWN the nginx grid" 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 desc "users:edit", "Allows editing the users" map "users:edit" => :users_edit def users_edit inside_machine_dir do system("#{ENV['EDITOR']} config/users.yml") end end desc "uper", "Nginx grid uper", hide: true def uper inside_engine_machine_dir do nginx = SmartMachine::Grids::Nginx.new nginx.uper end end desc "downer", "Nginx grid downer", hide: true def downer inside_engine_machine_dir do nginx = SmartMachine::Grids::Nginx.new nginx.downer end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems