dockrails 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f07bf771f1e33fdc84bf318cf2f2305b1b8d890
4
- data.tar.gz: b9a5f623825497ed8cad5c666b86ea2e7eef3ec2
3
+ metadata.gz: 1b388588e6268d3318b8b8a6a913d07557547af4
4
+ data.tar.gz: c28ccebfa601db4179777d8f6975629b6078d26a
5
5
  SHA512:
6
- metadata.gz: 5fb59a3b2b337afb42392e5966adff905a51c77ed45ce2e1a60c6d09f4147d453afc7ad224f52474e7965c844582a41caab13b554f40b449742aaaa5bd21cd7e
7
- data.tar.gz: 07062f712e9e242a3643c13e877847f0f7cd56acbb29aba6e5ff155afb8cbcd7cef48f1de609d106eb4f0b399a9a1c7586a2bbf7253cbd15c2ee674310794d58
6
+ metadata.gz: 81fb98e8078e304c3585236ab83b3ce7ac7515dfeadb8336cbd7c1cac9db0440f6616b133afef79caee8fdc01bb906fdb57da16801e4fac305ebbd2cef04ba09
7
+ data.tar.gz: fefc1901c4a8d36a3a94413b651cb5e5820621949430b525d11a3431451d2df9566dfce78c6ff5f1841ced1665a051b67dfa60ccb46151244ae9e3e92d06547c
data/bin/dockrails CHANGED
@@ -84,6 +84,7 @@ command :clean do |c|
84
84
  system("docker-sync-stack clean")
85
85
  end
86
86
  end
87
+ alias_command :stop, :'clean'
87
88
 
88
89
  command :build do |c|
89
90
  c.syntax = 'dockrails build'
@@ -102,13 +103,27 @@ command :run do |c|
102
103
  c.example 'description', 'dockrails run [web|job|db|redis] bundle install'
103
104
  c.action do |args, options|
104
105
  if args.size < 2
105
- say "\n<%= color 'Please specify a container and command to run, ex: dockrails run app bundle install', RED%>"
106
+ say "\n<%= color 'Please specify a container and command to run, ex: dockrails run web bundle install', RED%>"
106
107
  else
107
108
  system("docker-compose run #{args.join(" ")}")
108
109
  end
109
110
  end
110
111
  end
111
112
 
113
+ command :restart do |c|
114
+ c.syntax = 'dockrails restart [container]'
115
+ c.summary = 'Restart a specific container'
116
+ c.description = ''
117
+ c.example 'description', 'dockrails restart web'
118
+ c.action do |args, options|
119
+ if args.size < 1
120
+ say "\n<%= color 'Please specify a container, ex: dockrails restart web', RED%>"
121
+ else
122
+ system("docker-compose restart #{args.join(" ")}")
123
+ end
124
+ end
125
+ end
126
+
112
127
  command :attach do |c|
113
128
  c.syntax = 'dockrails attach [container]'
114
129
  c.summary = 'Attach TTY to a specific container (usefull for ByeBug or Pry)'
@@ -1,3 +1,3 @@
1
1
  module Dockrails
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockrails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Montard