lib/dockage/cli.rb in dockage-0.1.2 vs lib/dockage/cli.rb in dockage-0.1.3
- old
+ new
@@ -29,11 +29,10 @@
end
desc 'up [CONTAINER]', 'Create and run specified [CONTAINER] or all configured containers'
def up(name = nil)
find_containers(name).each do |container|
- Dockage.logger("Bringing up #{container[:name].yellow.bold}")
Dockage::Docker.shell.up(container)
end
end
desc 'reload [CONTAINER]', 'Reload specified [CONTAINER] or all configured containers'
@@ -54,9 +53,16 @@
desc 'destroy [CONTAINER]', 'Destroy specified [CONTAINER] or all configured containers'
def destroy(name = nil)
find_containers(name).each do |container|
Dockage::Docker.shell.stop(container[:name])
Dockage::Docker.shell.destroy(container[:name])
+ end
+ end
+
+ desc 'stop [CONTAINER]', 'Stop specified [CONTAINER] or all configured containers'
+ def stop(name = nil)
+ find_containers(name).each do |container|
+ Dockage::Docker.shell.stop(container[:name])
end
end
desc 'ssh CONTAINER', 'SSH login to CONTAINER'
def ssh(name)