configspec 0.0.6 → 0.0.7

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: d13870de5d7dfb1c6b8591b05945391a5867d2e0
4
- data.tar.gz: 3244feb1ec286103cd4a6a3b4a3bb266bdfa8f27
3
+ metadata.gz: 2ae21ecb5090d03fdf8cc1e05653c86521667172
4
+ data.tar.gz: d335193c60ff8ef49218763750de5d4aa7f95bec
5
5
  SHA512:
6
- metadata.gz: 8f33aceb898dbe5383dbbe6da629a6012ee6f16b953504d97ff67c8c8a4c7fd56516fd7a7f6e9a7de5b5a6c9108c532d9aae59b033b9998b9979c517049ac314
7
- data.tar.gz: 52374c4bdcab023cb3d0db699cdb8b483ad09689347788cf326a8e8c45c901b1ca0042c707c225dcdbeffb5fb3f1751a8734b513cedce2ad1353337f03a85bf9
6
+ metadata.gz: 689429262333790c3031a5eea1da6d9953c1f8dbb01a9c137647820582f22dc7a6d615c7ca463aef20df24fc3294b1f8af6bff8b07d93b3093511ca885db3629
7
+ data.tar.gz: f2297594b7ca00f9946c57af3cb8dc54fc8f6742d255157a5d2e6fbefc449e86ab440cb6447da246ca77d71c5852f5141829db37e9ad8f4830de45f11c5385a0
@@ -15,6 +15,10 @@ module Configspec
15
15
  { :stdout => nil, :stderr => nil,
16
16
  :exit_status => 0, :exit_signal => nil }
17
17
  end
18
+
19
+ def from(base)
20
+ @lines << "FROM #{base}"
21
+ end
18
22
  end
19
23
  end
20
24
  end
@@ -16,7 +16,7 @@ module Configspec
16
16
  Shellwords.shellescape(str)
17
17
  end
18
18
 
19
- def check_installed(package, version=nil)
19
+ def install(package, version=nil)
20
20
  raise NotImplementedError.new
21
21
  end
22
22
  end
@@ -1,7 +1,7 @@
1
1
  module Configspec
2
2
  module Helper
3
3
  module Type
4
- types = %w( base package )
4
+ types = %w( base package dockerfile )
5
5
 
6
6
  types.each {|type| require "configspec/type/#{type}" }
7
7
 
@@ -0,0 +1,13 @@
1
+ module Configspec
2
+ module Type
3
+ class Dockerfile < Base
4
+ def from?(base)
5
+ backend.from(base)
6
+ end
7
+
8
+ def to_s
9
+ "Dockerfile"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Configspec
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
@@ -106,6 +106,7 @@ files:
106
106
  - lib/configspec/helper/type.rb
107
107
  - lib/configspec/setup.rb
108
108
  - lib/configspec/type/base.rb
109
+ - lib/configspec/type/dockerfile.rb
109
110
  - lib/configspec/type/package.rb
110
111
  - lib/configspec/version.rb
111
112
  - spec/redhat/package_spec.rb