percheron 0.7.13 → 0.7.14

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: 6fbe3a87573ec876ad368663f4da08e86f3d6f79
4
- data.tar.gz: eedbde7448d4abd3a6e1e03d8ffa6da063ff98af
3
+ metadata.gz: 4445d20c93033c570134361013fe728e544003fd
4
+ data.tar.gz: 10758084ea92c594af6fdb6f3e97ccb97bb5ff2d
5
5
  SHA512:
6
- metadata.gz: bc7b8ed5c1f1e8fe65bc277873be95626488870e17c9ae0a8f1312783e169ea4f5b32385512daeb6292dc2dea3faf3b6bb59bd3850da06308f9e51187f51fce8
7
- data.tar.gz: 309648e78a99688bca4f863de0ddc859b98331346db2287ea1d1daf91b45b66e08dafad90a1501744ff4b23b4c1531b214a95b4bd5ceabb10fabc2004708ec08
6
+ metadata.gz: 17d9f87847470b2b2fd05d5715bcbc2c191fabafd86b4171bdf5b47eca8e8568faa379bd0041e7d123e7ac035db69b48f05b6dbf09c497b6377184bd914dcbba
7
+ data.tar.gz: be4a053a63c1c07206c5660ea8106cdb8549582ecd6e8fff713ed95149dee195a7adfb4345b51ff120f47e31960a3980565a0bf1616bc6bb3e0161d93edd384b
data/CHANGELOG.md ADDED
@@ -0,0 +1,93 @@
1
+ ## v0.7.14 / 2015-08-06
2
+
3
+ * When executing scripts, pass -x for more insight
4
+ * When referring to Unit, use #display_name - <stack_name>:<unit_name>
5
+
6
+ ## v0.7.13 / 2015-08-05
7
+
8
+ * Support for userdata in the .percheron.yml
9
+ * build command now has a --forcerm flag
10
+
11
+ ## v0.7.12 / 2015-08-05
12
+
13
+ * Support for secrets in the .percheron.yml
14
+ * Config became a Singleton
15
+ * BUGfix where build output was not being displayed
16
+
17
+ ## v0.7.11 / 2015-08-04
18
+
19
+ * Sweet logo! Thanks @clouseauu :)
20
+ * DOCKER_HOST, DOCKER_CERT_PATH and DOCKER_TLS_VERIFY are now inspected
21
+ * Gem updates
22
+ * Volumes in table view are printed on a new line
23
+ * Doc typo fixes
24
+
25
+ ## v0.7.10 / 2015-05-19
26
+
27
+ * BUGfix when generating a graph with clusters
28
+
29
+ ## v0.7.9 / 2015-05-19
30
+
31
+ * Exit with a 1 from main percheron CLT if there is a problem
32
+ * Dependency support for graph generation
33
+ * Documentation updates
34
+
35
+ ## v0.7.8 / 2015-05-14
36
+
37
+ * Container -> Unit rename tidy up
38
+ * Documentation updates
39
+
40
+ ## v0.7.7 / 2015-05-14
41
+
42
+ * Container -> Unit rename
43
+ * Documentation updates
44
+
45
+ ## v0.7.6 / 2015-04-30
46
+
47
+ * BUGfix for inconsistent ordering in table view
48
+
49
+ ## v0.7.5 / 2015-04-29
50
+
51
+ ## v0.7.4 / 2015-03-26
52
+
53
+ ## v0.7.3 / 2015-03-26
54
+
55
+ ## v0.7.2 / 2015-03-24
56
+
57
+ ## v0.7.1 / 2015-03-24
58
+
59
+ ## v0.7.0 / 2015-03-23
60
+
61
+ ## v0.6.4 / 2015-03-14
62
+
63
+ ## v0.6.3 / 2015-03-14
64
+
65
+ ## v0.6.2 / 2015-03-14
66
+
67
+ ## v0.6.1 / 2015-03-13
68
+
69
+ ## v0.6.0 / 2015-03-13
70
+
71
+ ## v0.5.0 / 2015-03-09
72
+
73
+ ## v0.4.0 / 2015-03-07
74
+
75
+ ## v0.3.2 / 2015-03-06
76
+
77
+ ## v0.3.1 / 2015-03-04
78
+
79
+ ## v0.3.0 / 2015-03-04
80
+
81
+ ## v0.2.4 / 2015-03-03
82
+
83
+ ## v0.2.3 / 2015-03-02
84
+
85
+ ## v0.2.2 / 2015-03-01
86
+
87
+ ## v0.2.1 / 2015-03-01
88
+
89
+ ## v0.2.0 / 2015-02-28
90
+
91
+ ## v0.1.0 / 2015-02-22
92
+
93
+ * Initial commit!
@@ -15,7 +15,7 @@ module Percheron
15
15
  def execute!
16
16
  results = []
17
17
  if unit.exists?
18
- $logger.debug "Unit '#{unit.name}' already exists"
18
+ $logger.debug "Unit '#{unit.display_name}' already exists"
19
19
  else
20
20
  results << create!
21
21
  end
@@ -90,7 +90,7 @@ module Percheron
90
90
  end
91
91
 
92
92
  def create_unit!
93
- $logger.info "Creating '#{unit.name}' unit"
93
+ $logger.info "Creating '#{unit.display_name}' unit"
94
94
  Connection.perform(Docker::Container, :create, options)
95
95
  end
96
96
 
@@ -12,7 +12,7 @@ module Percheron
12
12
  end
13
13
 
14
14
  def execute!
15
- $logger.debug "Executing #{description} #{scripts.inspect} on '#{unit.name}' unit"
15
+ $logger.debug "Executing #{description} #{scripts.inspect} on '#{unit.display_name}' unit"
16
16
  results = exec!
17
17
  results.compact.empty? ? nil : unit
18
18
  end
@@ -46,13 +46,13 @@ module Percheron
46
46
  scripts.each do |script|
47
47
  in_working_directory(base_dir) do
48
48
  file = Pathname.new(File.expand_path(script, base_dir))
49
- execute_command!('/bin/sh /tmp/%s 2>&1' % file.basename)
49
+ execute_command!('/bin/sh -x /tmp/%s 2>&1' % file.basename)
50
50
  end
51
51
  end
52
52
  end
53
53
 
54
54
  def execute_command!(command)
55
- $logger.info "Executing #{description} '#{command}' for '#{unit.name}' unit"
55
+ $logger.info "Executing #{description} '#{command}' for '#{unit.display_name}' unit"
56
56
  unit.container.exec(command.split(' ')) do |stream, out|
57
57
  $logger.debug '%s: %s' % [ stream, out.strip ]
58
58
  end
@@ -26,7 +26,7 @@ module Percheron
26
26
  $logger.debug "Executing #{description} scripts '#{scripts.inspect}' locally"
27
27
  scripts.each do |script|
28
28
  in_working_directory(base_dir) do
29
- execute_command!('/bin/sh %s 2>&1' % Pathname.new(File.expand_path(script)))
29
+ execute_command!('/bin/sh -x %s 2>&1' % Pathname.new(File.expand_path(script)))
30
30
  end
31
31
  end
32
32
  end
@@ -9,7 +9,7 @@ module Percheron
9
9
  end
10
10
 
11
11
  def execute!
12
- $logger.debug "Showing logs on '#{unit.name}' unit"
12
+ $logger.debug "Showing logs on '#{unit.display_name}' unit"
13
13
  display_logs!
14
14
  end
15
15
 
@@ -31,7 +31,7 @@ module Percheron
31
31
 
32
32
  def delete_unit!
33
33
  return nil unless unit.exists?
34
- $logger.info "Deleting '#{unit.name}' unit"
34
+ $logger.info "Deleting '#{unit.display_name}' unit"
35
35
  unit.container.remove(force: force)
36
36
  rescue Docker::Error::ConflictError => e
37
37
  $logger.error "Unable to delete '%s' unit - %s" % [ unit.name, e.inspect ]
@@ -31,11 +31,11 @@ module Percheron
31
31
 
32
32
  def inform!
33
33
  return nil unless unit.dockerfile_md5s_match?
34
- $logger.info "Unit '#{unit.name}' - No Dockerfile changes or version bump"
34
+ $logger.info "Unit '#{unit.display_name}' - No Dockerfile changes or version bump"
35
35
  end
36
36
 
37
37
  def recreate!
38
- $logger.debug "Unit '#{unit.name}' exists but will be recreated"
38
+ $logger.debug "Unit '#{unit.display_name}' exists but will be recreated"
39
39
  Purge.new(unit).execute!
40
40
  Create.new(unit).execute!
41
41
  end
@@ -29,7 +29,7 @@ module Percheron
29
29
 
30
30
  def exec!
31
31
  cmd = '%s exec -ti %s %s' % [ DOCKER_CLIENT, unit.full_name, command ]
32
- $logger.debug %(Executing "#{cmd}" on '#{unit.name}' unit)
32
+ $logger.debug %(Executing "#{cmd}" on '#{unit.display_name}' unit)
33
33
  system(cmd)
34
34
  end
35
35
  end
@@ -36,7 +36,7 @@ module Percheron
36
36
 
37
37
  def start!
38
38
  return nil if !unit.startable? || unit.running?
39
- $logger.info "Starting '#{unit.name}' unit"
39
+ $logger.info "Starting '#{unit.display_name}' unit"
40
40
  unit.container.start!
41
41
  end
42
42
 
@@ -19,7 +19,7 @@ module Percheron
19
19
  attr_reader :unit
20
20
 
21
21
  def stop!
22
- $logger.info "Stopping '#{unit.name}' unit"
22
+ $logger.info "Stopping '#{unit.display_name}' unit"
23
23
  unit.container.stop!
24
24
  end
25
25
 
@@ -125,7 +125,7 @@ module Percheron
125
125
 
126
126
  def exec_on_dependant_units_for(unit_names)
127
127
  exec_on_units(unit_names) do |unit|
128
- $logger.debug "Processing '#{unit.name}' unit"
128
+ $logger.debug "Processing '#{unit.display_name}' unit"
129
129
  yield(unit)
130
130
  unit_names.delete(unit.full_name)
131
131
  end
@@ -69,6 +69,10 @@ module Percheron
69
69
  '%s_%s' % [ stack.name, name ]
70
70
  end
71
71
 
72
+ def display_name
73
+ '%s:%s' % [ stack.name, name ]
74
+ end
75
+
72
76
  def pseudo_full_name
73
77
  '%s_%s' % [ stack.name, pseudo_name ]
74
78
  end
@@ -93,7 +97,7 @@ module Percheron
93
97
 
94
98
  def links
95
99
  startable_dependant_units.map do |_, unit|
96
- '%s:%s' % [ unit.full_name, unit.name ]
100
+ '%s:%s' % [ unit.full_name, unit.full_name ]
97
101
  end
98
102
  end
99
103
 
@@ -1,3 +1,3 @@
1
1
  module Percheron
2
- VERSION = '0.7.13'
2
+ VERSION = '0.7.14'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percheron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.13
4
+ version: 0.7.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ash McKenzie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-05 00:00:00.000000000 Z
11
+ date: 2015-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp
@@ -303,6 +303,7 @@ files:
303
303
  - ".rspec"
304
304
  - ".rubocop.yml"
305
305
  - ".travis.yml"
306
+ - CHANGELOG.md
306
307
  - CODE_OF_CONDUCT.md
307
308
  - Gemfile
308
309
  - Gemfile.travis