dockrails 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f5568873ad53a84d13c5a2d2f500a61091516ee
4
- data.tar.gz: eaa4edcea9f1a27b523429b36ea3417b85253be5
3
+ metadata.gz: 2af14517691bd7a4bb6d4cb322caa32b4ed44dc9
4
+ data.tar.gz: 72a9899888365436771a9955e553dd75d891d3d1
5
5
  SHA512:
6
- metadata.gz: 6ff9801d88d448337b7c159adeda7cd72179ad93410f1d0a2b81e524d590e96df076566efc57edbc36a3d256028cfce26f1b06680eeab54c355b5ff84d37300b
7
- data.tar.gz: be8d7428bb39d486b79aa8620e857dda836a96706bebf81b30ff93e0bfbc0bb0428bb343ddd07dea1a2a5d1acdd37f26bf866dc4a78cdef7498b6f1ff67a212d
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 generate and Run a Rails environment with Docker'
9
+ program :description, 'CLI to Generate and Run a Rails environment with Docker'
10
10
 
11
11
  command :init do |c|
12
- c.syntax = 'railsdock init'
12
+ c.syntax = 'dockrails init'
13
13
  c.summary = 'Initialize your Rails Docker environment'
14
14
  c.description = ''
15
- c.example 'description', 'railsdock init'
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: railsdock start"
46
- say "Familiarize yourself with the different commands: railsdock --help"
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 = 'railsdock start'
52
- c.summary = 'Start the docker stack containers'
51
+ c.syntax = 'dockrails start'
52
+ c.summary = 'Start the docker containers'
53
53
  c.description = ''
54
- c.example 'description', 'railsdock start'
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 = 'railsdock clean'
62
- c.summary = 'Clean the docker stack containers'
61
+ c.syntax = 'dockrails clean'
62
+ c.summary = 'Clean the docker containers'
63
63
  c.description = ''
64
- c.example 'description', 'railsdock clean'
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 = 'railsdock run [container] [command]'
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', 'railsdock run [web|job|db|redis] bundle install'
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: railsdock run app bundle install"
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 = 'railsdock attach [container]'
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: railsdock attach app"
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
@@ -1,3 +1,3 @@
1
1
  module Dockrails
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Montard