pauper 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/pauper +6 -0
  2. data/lib/pauper.rb +9 -4
  3. metadata +81 -73
  4. checksums.yaml +0 -7
data/bin/pauper CHANGED
@@ -23,6 +23,12 @@ class CLI < Thor
23
23
  end
24
24
  end
25
25
 
26
+ desc "create [NODENAME]", "Create a VM"
27
+ def create(node_name=nil)
28
+ pauper = Pauper.new
29
+ pauper.create(node_name)
30
+ end
31
+
26
32
  desc "start [NODENAME]", "Start a VM"
27
33
  def start(node_name=nil)
28
34
  pauper = Pauper.new
@@ -47,7 +47,7 @@ class Pauper
47
47
  prepare_base_cache
48
48
 
49
49
  puts "Installing chef..."
50
- cmd "sudo chroot /var/lib/lxc/base/rootfs/ bash -c 'curl -L https://www.opscode.com/chef/install.sh | bash'"
50
+ cmd "sudo chroot /var/lib/lxc/base/rootfs/ bash -c 'wget #{@pauper_config.config[:chef_download_url]}/#{@pauper_config.config[:chef_deb_name]} && dpkg -i #{@pauper_config.config[:chef_deb_name]}; rm #{@pauper_config.config[:chef_deb_name]}'"
51
51
 
52
52
  start_node('base')
53
53
  sleep 3
@@ -129,7 +129,8 @@ class Pauper
129
129
  client_erb = ERB.new <<EOF
130
130
  node_name "<%= chef_node %>"
131
131
  chef_server_url "<%= config[:chef_server_url] %>"
132
- search_url "<%= config[:search_url] %>"
132
+ chef_download_url "<%= config[:chef_download_url] %>"
133
+ chef_deb_name "<%= config[:chef_deb_name] %>"
133
134
  validation_client_name "<%= config[:validation_client_name] %>"
134
135
  environment "<%= config[:chef_environment] %>"
135
136
  verbose_logging false
@@ -1065,8 +1066,12 @@ end
1065
1066
  @config[:chef_server_url] = url
1066
1067
  end
1067
1068
 
1068
- def search_url(url)
1069
- @config[:search_url] = url
1069
+ def chef_download_url(url)
1070
+ @config[:chef_download_url] = url
1071
+ end
1072
+
1073
+ def chef_deb_name(name)
1074
+ @config[:chef_deb_name] = name
1070
1075
  end
1071
1076
 
1072
1077
  def validation_key_path(path)
metadata CHANGED
@@ -1,81 +1,81 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: pauper
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.10
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 11
9
+ version: 0.1.11
5
10
  platform: ruby
6
- authors:
11
+ authors:
7
12
  - Tyler McMullen
8
13
  - Jason Cook
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-07-26 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-08-19 00:00:00 -07:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
15
22
  name: thor
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - '>='
19
- - !ruby/object:Gem::Version
20
- version: '0'
21
- type: :runtime
22
23
  prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - '>='
26
- - !ruby/object:Gem::Version
27
- version: '0'
28
- - !ruby/object:Gem::Dependency
29
- name: net-ssh
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - '>='
33
- - !ruby/object:Gem::Version
34
- version: '0'
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ version: "0"
35
31
  type: :runtime
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: net-ssh
36
35
  prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - '>='
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
- - !ruby/object:Gem::Dependency
43
- name: net-scp
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - '>='
47
- - !ruby/object:Gem::Version
48
- version: '0'
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ segments:
41
+ - 0
42
+ version: "0"
49
43
  type: :runtime
44
+ version_requirements: *id002
45
+ - !ruby/object:Gem::Dependency
46
+ name: net-scp
50
47
  prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - '>='
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- - !ruby/object:Gem::Dependency
57
- name: json
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - '>='
61
- - !ruby/object:Gem::Version
62
- version: '0'
48
+ requirement: &id003 !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ segments:
53
+ - 0
54
+ version: "0"
63
55
  type: :runtime
56
+ version_requirements: *id003
57
+ - !ruby/object:Gem::Dependency
58
+ name: json
64
59
  prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- description: Inspired by Vagrant but much much simpler. Also uses LXC, instead of
71
- Virtualbox.
72
- email:
60
+ requirement: &id004 !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ segments:
65
+ - 0
66
+ version: "0"
67
+ type: :runtime
68
+ version_requirements: *id004
69
+ description: Inspired by Vagrant but much much simpler. Also uses LXC, instead of Virtualbox.
70
+ email:
73
71
  - tyler@fastly.com
74
- executables:
72
+ executables:
75
73
  - pauper
76
74
  extensions: []
75
+
77
76
  extra_rdoc_files: []
78
- files:
77
+
78
+ files:
79
79
  - bin/pauper
80
80
  - lib/dhcpd.rb
81
81
  - lib/hosts.rb
@@ -84,27 +84,35 @@ files:
84
84
  - lib/pauper.rb
85
85
  - lib/vmx.rb
86
86
  - README
87
+ has_rdoc: true
87
88
  homepage: http://github.com/fastly/Pauper
88
89
  licenses: []
89
- metadata: {}
90
+
90
91
  post_install_message:
91
92
  rdoc_options: []
92
- require_paths:
93
+
94
+ require_paths:
93
95
  - lib
94
- required_ruby_version: !ruby/object:Gem::Requirement
95
- requirements:
96
- - - '>='
97
- - !ruby/object:Gem::Version
98
- version: '0'
99
- required_rubygems_version: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '>='
102
- - !ruby/object:Gem::Version
103
- version: '0'
96
+ required_ruby_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ segments:
101
+ - 0
102
+ version: "0"
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ segments:
108
+ - 0
109
+ version: "0"
104
110
  requirements: []
111
+
105
112
  rubyforge_project:
106
- rubygems_version: 2.0.3
113
+ rubygems_version: 1.3.6
107
114
  signing_key:
108
- specification_version: 4
115
+ specification_version: 3
109
116
  summary: A semi-sane way to manage a multi-vm dev environment
110
117
  test_files: []
118
+
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 0a783b50cc1523225d57315f8e14e7c5e08c1246
4
- data.tar.gz: 28aef07728592bb4075a095fefe2fe311eb61ea3
5
- SHA512:
6
- metadata.gz: e633a155b4c530d7b2f985e515d15a4cf5eb9dd64ac2a6ac71888a353792802fbf3375ea2f689dfd14b348ddb4e545031fa4e4812c35d3aa7140ac39f0c8b232
7
- data.tar.gz: 472bbff01d5cf69925bd831c628260aa78921786e233ba40087913ed399f58f60d30e90a73d7df8de78b8c40b856b431e6ee91b46296189154a632650b4c0d1e