dockrails 1.0.0 → 1.0.1
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 -16
- 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: 2af14517691bd7a4bb6d4cb322caa32b4ed44dc9
|
4
|
+
data.tar.gz: 72a9899888365436771a9955e553dd75d891d3d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f44e3310ba8fe63da42015b91262b29f6ce36aa89e1e66b9b9110af6199949ae5a76097e2e068dc73f20c5e5e176bef51459cfd3b0566d6a1c2ebfe2229bbb5f
|
7
|
+
data.tar.gz: 1f0d80977feb513ca7fd5c4d54915fc46ea0f27b238f2c490bc6bd1323ffd6ad207125409aabe2aeb082b7fdf10f16521b340f0fdfa4c3e61b9815d60f1341a4
|
data/bin/dockrails
CHANGED
@@ -6,13 +6,13 @@ require 'dockrails'
|
|
6
6
|
|
7
7
|
program :name, 'dockrails'
|
8
8
|
program :version, Dockrails::VERSION
|
9
|
-
program :description, 'CLI to
|
9
|
+
program :description, 'CLI to Generate and Run a Rails environment with Docker'
|
10
10
|
|
11
11
|
command :init do |c|
|
12
|
-
c.syntax = '
|
12
|
+
c.syntax = 'dockrails init'
|
13
13
|
c.summary = 'Initialize your Rails Docker environment'
|
14
14
|
c.description = ''
|
15
|
-
c.example 'description', '
|
15
|
+
c.example 'description', 'dockrails init'
|
16
16
|
c.action do |args, options|
|
17
17
|
|
18
18
|
existing_files = ["Dockerfile", "docker-compose.yml", "docker-sync.yml"].map { |file| File.exist?(file) }
|
@@ -42,39 +42,39 @@ Please take a look at the different files generated:
|
|
42
42
|
- docker-compose.yml
|
43
43
|
- docker-sync.yml"
|
44
44
|
|
45
|
-
say "\nStart your dockerized Rails Environement:
|
46
|
-
say "Familiarize yourself with the different commands:
|
45
|
+
say "\nStart your dockerized Rails Environement: dockrails start"
|
46
|
+
say "Familiarize yourself with the different commands: dockrails --help"
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
50
|
command :start do |c|
|
51
|
-
c.syntax = '
|
52
|
-
c.summary = 'Start the docker
|
51
|
+
c.syntax = 'dockrails start'
|
52
|
+
c.summary = 'Start the docker containers'
|
53
53
|
c.description = ''
|
54
|
-
c.example 'description', '
|
54
|
+
c.example 'description', 'dockrails start'
|
55
55
|
c.action do |args, options|
|
56
56
|
system("docker-sync-stack start")
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
60
|
command :clean do |c|
|
61
|
-
c.syntax = '
|
62
|
-
c.summary = 'Clean the docker
|
61
|
+
c.syntax = 'dockrails clean'
|
62
|
+
c.summary = 'Clean the docker containers'
|
63
63
|
c.description = ''
|
64
|
-
c.example 'description', '
|
64
|
+
c.example 'description', 'dockrails clean'
|
65
65
|
c.action do |args, options|
|
66
66
|
system("docker-sync-stack clean")
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
70
|
command :run do |c|
|
71
|
-
c.syntax = '
|
71
|
+
c.syntax = 'dockrails run [container] [command]'
|
72
72
|
c.summary = 'Run a command on a specific container'
|
73
73
|
c.description = ''
|
74
|
-
c.example 'description', '
|
74
|
+
c.example 'description', 'dockrails run [web|job|db|redis] bundle install'
|
75
75
|
c.action do |args, options|
|
76
76
|
if args.size < 2
|
77
|
-
say "\n Please specify a container and command to run, ex:
|
77
|
+
say "\n Please specify a container and command to run, ex: dockrails run app bundle install"
|
78
78
|
else
|
79
79
|
system("docker-compose run #{args.join(" ")}")
|
80
80
|
end
|
@@ -82,12 +82,12 @@ command :run do |c|
|
|
82
82
|
end
|
83
83
|
|
84
84
|
command :attach do |c|
|
85
|
-
c.syntax = '
|
85
|
+
c.syntax = 'dockrails attach [container]'
|
86
86
|
c.summary = 'Attach TTY to a specific container (usefull for ByeBug or Pry)'
|
87
87
|
c.description = 'toto'
|
88
88
|
c.action do |args, options|
|
89
89
|
if args.size < 1
|
90
|
-
say "\n Please specify a container, ex:
|
90
|
+
say "\n Please specify a container, ex: dockrails attach app"
|
91
91
|
else
|
92
92
|
system("docker attach $(docker-compose ps -q #{args[0]})")
|
93
93
|
end
|
data/lib/dockrails/version.rb
CHANGED