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 +4 -4
- data/bin/dockrails +16 -1
- data/lib/dockrails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b388588e6268d3318b8b8a6a913d07557547af4
|
4
|
+
data.tar.gz: c28ccebfa601db4179777d8f6975629b6078d26a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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)'
|
data/lib/dockrails/version.rb
CHANGED