regenbogenschmetterlingeinhornkatzchen 0.0.0 → 0.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6147d6c84194926fdc2ff040db9fc64055eff87
|
4
|
+
data.tar.gz: 2d8590f051ac9d1a47550894cb97c3bb3a505353
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1986356b1cc40306c974f539c39faa3760cda8f2169ee40caed78736b323d5c0e85360f38e4804abc0778a545b8d686254b7dadc9b5b900a45546aa8e7cc8d40
|
7
|
+
data.tar.gz: dcfdd56479e85db1974bdecca1976b7fb60230d283ca4a9295cfb94a934a9d5a75f5bccf6e34f8e86ae436cd06266f61b1a7605d30e62b6a5ff803960d120f96
|
data/bin/{regenbogenschmetterlingeinhornkatzchen.rb → regenbogenschmetterlingeinhornkatzchen}
RENAMED
@@ -9,26 +9,26 @@ program :description, 'Pllm'
|
|
9
9
|
adb_path = File.join(File.dirname(__FILE__), '..') + "/adb-atomic-developer-bundle/components"
|
10
10
|
centos_adb_path = adb_path+"/centos/centos-with-docker"
|
11
11
|
rhel_adb_path = adb_path+"/rhel/rhel-with-docker"
|
12
|
-
vagrant_base_cmd = "vagrant"
|
12
|
+
vagrant_base_cmd = "VAGRANT_LOG=info vagrant"
|
13
13
|
dockerfile_example_path = File.join(File.dirname(__FILE__), '..') + "/examples/Dockerfile"
|
14
14
|
|
15
15
|
command :new do |c|
|
16
16
|
c.syntax = 'cdk new [options]'
|
17
|
-
c.summary = 'Create new container'
|
17
|
+
c.summary = 'Create new container with host'
|
18
18
|
c.description = 'Create directory with container and host configurations'
|
19
19
|
c.example 'Create new container configuration with atomic host to deploy', 'cdk new Geablestapler --host rhel-atomic'
|
20
20
|
c.option '--name NAME', String, 'Define name of a container'
|
21
21
|
c.option '--host TYPE', String, 'Define host to setup to later deployement'
|
22
22
|
c.action do |args, options|
|
23
|
-
if options.name
|
23
|
+
if options.name
|
24
24
|
FileUtils.mkdir_p "#{options.name}/host"
|
25
25
|
host_vagrant_file_path = ""
|
26
26
|
guest_vagrant_file_path = ""
|
27
27
|
|
28
28
|
case options.host
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
when "rhel-atomic"
|
30
|
+
host_vagrant_file_path = rhel_adb_path+'/atomic-docker-host/Vagrantfile'
|
31
|
+
guest_vagrant_file_path = rhel_adb_path+'/sample-dev/Vagrantfile'
|
32
32
|
when "rhel-docker"
|
33
33
|
host_vagrant_file_path = rhel_adb_path+'/rhel-docker-host/Vagrantfile'
|
34
34
|
guest_vagrant_file_path = rhel_adb_path+'/sample-dev/Vagrantfile'
|
@@ -38,6 +38,9 @@ command :new do |c|
|
|
38
38
|
when "centos-docker"
|
39
39
|
host_vagrant_file_path = centos_adb_path+'/centos-docker-host/Vagrantfile'
|
40
40
|
guest_vagrant_file_path = centos_adb_path+'/sample-dev/Vagrantfile'
|
41
|
+
else
|
42
|
+
host_vagrant_file_path = centos_adb_path+'/centos-docker-host/Vagrantfile'
|
43
|
+
guest_vagrant_file_path = centos_adb_path+'/sample-dev/Vagrantfile'
|
41
44
|
end
|
42
45
|
|
43
46
|
FileUtils.cp host_vagrant_file_path, "./#{options.name}/host/"
|
@@ -52,7 +55,7 @@ command :new do |c|
|
|
52
55
|
say "#{options.name} Guest Vagrantfile prepared"
|
53
56
|
|
54
57
|
if agree "do you want to generate Dockerfile?", false
|
55
|
-
|
58
|
+
FileUtils.cp dockerfile_example_path, "./#{options.name}/"
|
56
59
|
end
|
57
60
|
else
|
58
61
|
say "You have to specify name and host"
|
@@ -67,16 +70,16 @@ command :run do |c|
|
|
67
70
|
c.example 'Run container from Vagrantfile in current directory', 'cdk run'
|
68
71
|
c.action do |args, options|
|
69
72
|
# Do something or c.when_called Cdk::Commands::List
|
70
|
-
exec("#{vagrant_base_cmd} up")
|
73
|
+
exec("#{vagrant_base_cmd} up --provider=docker")
|
71
74
|
end
|
72
75
|
end
|
73
76
|
|
74
77
|
command :list do |c|
|
75
78
|
c.syntax = 'cdk list [options]'
|
76
|
-
c.summary = ''
|
77
|
-
c.description = ''
|
78
|
-
c.example '
|
79
|
-
c.option '--
|
79
|
+
c.summary = 'List containers created by CDK'
|
80
|
+
c.description = 'List containers created by CDK'
|
81
|
+
c.example 'List currently active containers', 'cdk list'
|
82
|
+
c.option '--host', 'Docker host to probe'
|
80
83
|
c.action do |args, options|
|
81
84
|
# Do something or c.when_called Cdk::Commands::List
|
82
85
|
end
|
@@ -1,14 +1,14 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'regenbogenschmetterlingeinhornkatzchen'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.1'
|
4
4
|
s.date = '2012-03-23'
|
5
5
|
s.summary = "CDK wrapper"
|
6
|
-
s.description = "Wraper around couple of
|
6
|
+
s.description = "Wraper around couple of vagrant and docker files"
|
7
7
|
s.authors = ["Tomas Hrcka"]
|
8
8
|
s.email = 'thrcka@redhat.com'
|
9
9
|
s.homepage =
|
10
|
-
'http://rubygems.org/gems/
|
11
|
-
s.license = 'GPL-
|
10
|
+
'http://rubygems.org/gems/regenbogenschmetterlingeinhornkatzchen'
|
11
|
+
s.license = 'GPL-v2'
|
12
12
|
|
13
13
|
# this gemspec is, and parsing out the ignored files from the gitignore.
|
14
14
|
# Note that the entire gitignore(5) syntax is not supported, specifically
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: regenbogenschmetterlingeinhornkatzchen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Hrcka
|
@@ -10,10 +10,10 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2012-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Wraper around couple of
|
13
|
+
description: Wraper around couple of vagrant and docker files
|
14
14
|
email: thrcka@redhat.com
|
15
15
|
executables:
|
16
|
-
- regenbogenschmetterlingeinhornkatzchen
|
16
|
+
- regenbogenschmetterlingeinhornkatzchen
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
@@ -52,14 +52,14 @@ files:
|
|
52
52
|
- examples/start.sh
|
53
53
|
- lib/regenbogenschmetterlingeinhornkatzchen.rb
|
54
54
|
- regenbogenschmetterlingeinhornkatzchen.gemspec
|
55
|
-
- bin/regenbogenschmetterlingeinhornkatzchen
|
55
|
+
- bin/regenbogenschmetterlingeinhornkatzchen
|
56
56
|
- .gitmodules
|
57
57
|
- adb-atomic-developer-bundle/.git
|
58
58
|
- adb-atomic-developer-bundle/.gitignore
|
59
59
|
- .gitignore
|
60
|
-
homepage: http://rubygems.org/gems/
|
60
|
+
homepage: http://rubygems.org/gems/regenbogenschmetterlingeinhornkatzchen
|
61
61
|
licenses:
|
62
|
-
- GPL-
|
62
|
+
- GPL-v2
|
63
63
|
metadata: {}
|
64
64
|
post_install_message:
|
65
65
|
rdoc_options: []
|