pauper 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/pauper +4 -4
- data/lib/pauper.rb +4 -0
- metadata +44 -63
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8061f9e7fed973d6b7e807cf972999a643b6aa60
|
4
|
+
data.tar.gz: 1d4cfdcb4d00a9d4f7e77b442690ee0b4c16d6fc
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a1574e961c1afd4090dc182df2744474272a8fd9b203be27dcaf5c4df724f6fe807274c2581d77289a0f04bf3cae48ef2f8a72d2b89922d8a5d8b38e11306d66
|
7
|
+
data.tar.gz: 0b86e57858136d9b36652c08099dc3df8e6e63ffda021d812d5263668a97e490e4b4989b1126324479399dbaa3f2f4d597d2330e0a21a70a0e33c768a55167c0
|
data/bin/pauper
CHANGED
@@ -106,9 +106,9 @@ class CLI < Thor
|
|
106
106
|
vmx = VMX.new(vmx_file)
|
107
107
|
|
108
108
|
mac = vmx.data['ethernet0.generatedAddress']
|
109
|
-
arpmac = mac.gsub(/0([0-9a-
|
109
|
+
arpmac = mac.gsub(/0([0-9a-fA-F])/, '\1') # switch it to the format that arp likes
|
110
110
|
|
111
|
-
match = `arp -a | grep #{arpmac}`.match(/\(([0-9.]+)\)/)
|
111
|
+
match = `arp -a | grep -i #{arpmac}`.match(/\(([0-9.]+)\)/)
|
112
112
|
unless match
|
113
113
|
puts "Could not find any running VM with MAC addr: #{arpmac}"
|
114
114
|
exit
|
@@ -129,10 +129,10 @@ class CLI < Thor
|
|
129
129
|
end
|
130
130
|
|
131
131
|
# Set up route
|
132
|
-
gateway = `route -n get
|
132
|
+
gateway = `route -n get #{pauper.config[:subnet]}.0`.match(/gateway: (.*)$/).captures[0]
|
133
133
|
unless gateway == ip
|
134
134
|
puts "Adding route to LXC hosts..."
|
135
|
-
system 'sudo', 'route', 'add', '
|
135
|
+
system 'sudo', 'route', 'add', '#{pauper.config[:subnet]}.0/24', ip
|
136
136
|
end
|
137
137
|
|
138
138
|
# Write hosts
|
data/lib/pauper.rb
CHANGED
metadata
CHANGED
@@ -1,90 +1,74 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pauper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.9
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tyler McMullen
|
9
8
|
- Jason Cook
|
10
|
-
autorequire:
|
9
|
+
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-06-24 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: thor
|
17
|
-
version_requirements: !ruby/object:Gem::Requirement
|
18
|
-
requirements:
|
19
|
-
- - ">="
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: !binary |-
|
22
|
-
MA==
|
23
|
-
none: false
|
24
16
|
requirement: !ruby/object:Gem::Requirement
|
25
17
|
requirements:
|
26
|
-
- -
|
18
|
+
- - '>='
|
27
19
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
29
|
-
MA==
|
30
|
-
none: false
|
31
|
-
prerelease: false
|
20
|
+
version: '0'
|
32
21
|
type: :runtime
|
33
|
-
|
34
|
-
name: net-ssh
|
22
|
+
prerelease: false
|
35
23
|
version_requirements: !ruby/object:Gem::Requirement
|
36
24
|
requirements:
|
37
|
-
- -
|
25
|
+
- - '>='
|
38
26
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
40
|
-
|
41
|
-
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: net-ssh
|
42
30
|
requirement: !ruby/object:Gem::Requirement
|
43
31
|
requirements:
|
44
|
-
- -
|
32
|
+
- - '>='
|
45
33
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
47
|
-
MA==
|
48
|
-
none: false
|
49
|
-
prerelease: false
|
34
|
+
version: '0'
|
50
35
|
type: :runtime
|
51
|
-
|
52
|
-
name: net-scp
|
36
|
+
prerelease: false
|
53
37
|
version_requirements: !ruby/object:Gem::Requirement
|
54
38
|
requirements:
|
55
|
-
- -
|
39
|
+
- - '>='
|
56
40
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
58
|
-
|
59
|
-
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: net-scp
|
60
44
|
requirement: !ruby/object:Gem::Requirement
|
61
45
|
requirements:
|
62
|
-
- -
|
46
|
+
- - '>='
|
63
47
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
65
|
-
MA==
|
66
|
-
none: false
|
67
|
-
prerelease: false
|
48
|
+
version: '0'
|
68
49
|
type: :runtime
|
69
|
-
|
70
|
-
name: json
|
50
|
+
prerelease: false
|
71
51
|
version_requirements: !ruby/object:Gem::Requirement
|
72
52
|
requirements:
|
73
|
-
- -
|
53
|
+
- - '>='
|
74
54
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
76
|
-
|
77
|
-
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: json
|
78
58
|
requirement: !ruby/object:Gem::Requirement
|
79
59
|
requirements:
|
80
|
-
- -
|
60
|
+
- - '>='
|
81
61
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
83
|
-
MA==
|
84
|
-
none: false
|
85
|
-
prerelease: false
|
62
|
+
version: '0'
|
86
63
|
type: :runtime
|
87
|
-
|
64
|
+
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.
|
88
72
|
email:
|
89
73
|
- tyler@fastly.com
|
90
74
|
executables:
|
@@ -102,28 +86,25 @@ files:
|
|
102
86
|
- README
|
103
87
|
homepage: http://github.com/fastly/Pauper
|
104
88
|
licenses: []
|
105
|
-
|
89
|
+
metadata: {}
|
90
|
+
post_install_message:
|
106
91
|
rdoc_options: []
|
107
92
|
require_paths:
|
108
93
|
- lib
|
109
94
|
required_ruby_version: !ruby/object:Gem::Requirement
|
110
95
|
requirements:
|
111
|
-
- -
|
96
|
+
- - '>='
|
112
97
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
114
|
-
MA==
|
115
|
-
none: false
|
98
|
+
version: '0'
|
116
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
100
|
requirements:
|
118
|
-
- -
|
101
|
+
- - '>='
|
119
102
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
121
|
-
MA==
|
122
|
-
none: false
|
103
|
+
version: '0'
|
123
104
|
requirements: []
|
124
|
-
rubyforge_project:
|
125
|
-
rubygems_version:
|
126
|
-
signing_key:
|
127
|
-
specification_version:
|
105
|
+
rubyforge_project:
|
106
|
+
rubygems_version: 2.0.2
|
107
|
+
signing_key:
|
108
|
+
specification_version: 4
|
128
109
|
summary: A semi-sane way to manage a multi-vm dev environment
|
129
110
|
test_files: []
|