dg 0.4 → 0.5

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/dg +3 -0
  3. data/dg.gemspec +3 -1
  4. data/lib/docker.rb +7 -0
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bfa6c8117f605ab7db2805f81e17216c92987489
4
- data.tar.gz: eaafc7f4ffb0ee78493790040d9bb5eec079b49b
3
+ metadata.gz: f9837d2242bf148de8429ef4f15cad0cbe4b1029
4
+ data.tar.gz: 713df882c0d77bb40c9002e8da2182792c173e49
5
5
  SHA512:
6
- metadata.gz: b5830cb101398c6699904cd09bb3d8f87711561e6efd05a3422c2cc8c3a8de803a6ca4a999868444a1954bf9fe734bb11f761c410fa879bcf1eb49e17e840460
7
- data.tar.gz: 6acfe0496cba3c12eec562fbbcc2fe59efc9dfe9f82229838ee2a539f4405c92a24028f043ab17d0b7c4526c67b8fb56530550d6772e12b5fc92a6cb9f8fedc6
6
+ metadata.gz: f1d7dbc3ff306f6f709cfb41cc34ec1b7f9f0c4e1baa4247a66b5b77bff5ac35836c76617a27d76f933678ce2412b1c59740d9bf28ddab5c101708392eabdfa1
7
+ data.tar.gz: 04657de0f635fc6bc37ddf19bd13400abb1510260b9a183e4514eedb8096cbcc1843fd0c0f31ec8bb1b492765564348127213a735df88c8b29e80366b59eb9ad
data/bin/dg CHANGED
@@ -4,6 +4,8 @@ require File.expand_path('../../lib/docker', __FILE__)
4
4
 
5
5
  COMMANDS = %w(
6
6
  -h
7
+ -v
8
+ --version
7
9
  build
8
10
  debug
9
11
  deploy
@@ -12,6 +14,7 @@ COMMANDS = %w(
12
14
  push
13
15
  run
14
16
  test
17
+ version
15
18
  )
16
19
 
17
20
  if COMMANDS.include?(ARGV.first)
data/dg.gemspec CHANGED
@@ -1,9 +1,11 @@
1
1
  $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
+ VERSION = '0.5'
4
+
3
5
  # Describe your gem and declare its dependencies:
4
6
  Gem::Specification.new do |s|
5
7
  s.name = "dg"
6
- s.version = '0.4'
8
+ s.version = VERSION
7
9
  s.authors = ["Michael Malet"]
8
10
  s.email = ["michael@nervd.com"]
9
11
  s.homepage = "https://github.com/shinyscorpion/dg"
@@ -80,6 +80,11 @@ class Docker
80
80
  run_tests
81
81
  end
82
82
 
83
+ def version
84
+ puts "v#{VERSION}"
85
+ end
86
+ alias_method :v, :version
87
+
83
88
  private
84
89
 
85
90
  def error!(e, step = "executing")
@@ -190,9 +195,11 @@ class Docker
190
195
  push Push the image to your docker registry
191
196
  run Run the image using your fig.yml's `web` config
192
197
  test Run the image using your fig.yml's `test` config
198
+ version Display the current dg version
193
199
  ".gsub(/^ {6}/,'')
194
200
  end
195
201
  alias_method :h, :help
196
202
  end
197
203
 
198
204
  end
205
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dg
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Malet