gearship 0.2.1 → 0.2.2

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: e57848dadb8268f2179fa5f48c0c5d94a120e017
4
- data.tar.gz: 8586af9d21e36185f135b5df03078c0161081a90
3
+ metadata.gz: 130d1bc5e651c3a5863a8fefa6b14844af7aca2d
4
+ data.tar.gz: 279b8db270159a6969a99f0c220f3398004ae356
5
5
  SHA512:
6
- metadata.gz: cd3731134324459501740615317f9dfe1f409e4f72278d367d89d420dd270e1f99b4b7afe05060f269c031788ad58f3dd88afd322bfdecf2706e092a39b4ce76
7
- data.tar.gz: d983b7d23c1210d4fc53fd9b7e7a64d984c30e666b9d040bff1b79e6ccf6634da5ef983ebae095190b710a5a67cf2345522da4c5d99ba184b96c785295cf9480
6
+ metadata.gz: 6b05625cfe8b73be24ffbcdcdb1fbba612f626f08afd9957488217708965eb92501d404961dfa6bf67cd922fdcaf63b6493f2e2d73b79c1e03b8fdff0178b570
7
+ data.tar.gz: 26461c3a8ddd5b2d7a7b8c6e061dc5941adb2824b00be82dbc6c9fda9905f1a19ecfbcdadd0521571798440a448f512ac1624540853b2a072a4d500c70bd09c7
data/gearship.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'gearship'
5
- spec.version = '0.2.1'
5
+ spec.version = '0.2.2'
6
6
  spec.authors = ['Leonas']
7
7
  spec.email = ['leonas@leonas.io']
8
8
  spec.homepage = 'http://github.com/leonas/gearship'
data/lib/gearship/cli.rb CHANGED
@@ -35,6 +35,7 @@ module Gearship
35
35
  end
36
36
 
37
37
  def do_init(project)
38
+ copy_file 'templates/.dockerignore', ".dockerignore"
38
39
  copy_file 'templates/.gitignore', "#{project}/.gitignore"
39
40
  copy_file 'templates/gearship.yml', "#{project}/gearship.yml"
40
41
  copy_file 'templates/gearship.sh', "#{project}/gearship.sh"
data/lib/gearship.rb CHANGED
@@ -3,7 +3,7 @@ require 'rainbow'
3
3
  require 'yaml'
4
4
 
5
5
  require 'rainbow/version'
6
- require 'rainbow/ext/string' unless Rainbow::VERSION < '2.0.0'
6
+ require 'rainbow/ext/string'
7
7
 
8
8
  module Gearship
9
9
  autoload :Cli, 'gearship/cli'
@@ -0,0 +1 @@
1
+ gearship
@@ -1 +1 @@
1
- /compiled
1
+ compiled
@@ -1,2 +1,2 @@
1
1
  docker login -u="<%= @attributes.docker_username %>" -p="<%= @attributes.docker_password %>"
2
- docker pull <%= @attributes.app_repo %>
2
+ docker pull <%= @attributes.container_repo %>
@@ -1,2 +1,2 @@
1
- docker stop <%= @attributes.app_name %>
2
- docker rm <%= @attributes.app_name %>
1
+ docker stop <%= @attributes.container_name %>
2
+ docker rm <%= @attributes.container_name %>
@@ -1,5 +1,5 @@
1
- docker run --name=<%= @attributes.app_name %> \
2
- --publish=<%= @attributes.app_port_map %> \
3
- --restart=always \
1
+ docker run --name <%= @attributes.container_name %> \
2
+ --publish <%= @attributes.container_port_map %> \
3
+ --restart always \
4
4
  --detach \
5
- <%= @attributes.app_repo %>
5
+ <%= @attributes.container_repo %>
@@ -3,9 +3,9 @@ attributes:
3
3
  ssh_target: user@target:port
4
4
  docker_username: docker_user
5
5
  docker_password: docker_password
6
- app_name: app_name
7
- app_repo: username/repository
8
- app_port_map: "80:4000"
6
+ container_name: container_name
7
+ container_repo: username/repository
8
+ container_port_map: "80:4000"
9
9
 
10
10
  # Remote actions here will be downloaded to compiled/actions.
11
11
  actions:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gearship
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonas
@@ -72,6 +72,7 @@ files:
72
72
  - lib/gearship/cli.rb
73
73
  - lib/gearship/logger.rb
74
74
  - lib/gearship/utility.rb
75
+ - lib/templates/.dockerignore
75
76
  - lib/templates/.gitignore
76
77
  - lib/templates/actions/configure_firewall.sh
77
78
  - lib/templates/actions/install_basics.sh