freighthop 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/freighthop/config.rb +1 -1
- data/lib/freighthop/version.rb +1 -1
- data/lib/freighthop.rb +3 -3
- data/local_modules/freighthop/manifests/init.pp +5 -1
- data/local_modules/freighthop/manifests/params.pp +2 -0
- data/local_modules/freighthop/manifests/ppas.pp +9 -0
- data/local_modules/freighthop/manifests/rbenv.pp +0 -4
- data/modules/freighthop/manifests/init.pp +5 -1
- data/modules/freighthop/manifests/params.pp +2 -0
- data/modules/freighthop/manifests/ppas.pp +9 -0
- data/modules/freighthop/manifests/rbenv.pp +0 -4
- metadata +6 -4
data/lib/freighthop/config.rb
CHANGED
data/lib/freighthop/version.rb
CHANGED
data/lib/freighthop.rb
CHANGED
@@ -21,7 +21,7 @@ module Freighthop
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def app_name
|
24
|
-
@app_name ||=
|
24
|
+
@app_name ||= host_root.basename.to_s
|
25
25
|
end
|
26
26
|
|
27
27
|
def hostname
|
@@ -43,8 +43,8 @@ module Freighthop
|
|
43
43
|
def mounts
|
44
44
|
Freighthop::Config.fetch("freighthop::mounts").map do |host, guest|
|
45
45
|
[
|
46
|
-
File.expand_path(
|
47
|
-
File.expand_path(
|
46
|
+
File.expand_path(host_root.join(host)),
|
47
|
+
File.expand_path(guest_root.join(guest)),
|
48
48
|
]
|
49
49
|
end
|
50
50
|
end
|
@@ -1,7 +1,8 @@
|
|
1
1
|
class freighthop(
|
2
2
|
$databases,
|
3
3
|
$database_users,
|
4
|
-
$packages =
|
4
|
+
$packages = $freighthop::params::packages,
|
5
|
+
$ppas = $freighthop::params::ppas,
|
5
6
|
$ruby_version = $freighthop::params::ruby_version,
|
6
7
|
$app_name = $freighthop::params::app_name,
|
7
8
|
$app_root = $freighthop::params::app_root,
|
@@ -13,6 +14,9 @@ class freighthop(
|
|
13
14
|
) inherits freighthop::params {
|
14
15
|
include apt
|
15
16
|
|
17
|
+
class { 'freighthop::ppas':
|
18
|
+
ppas => $ppas,
|
19
|
+
} ->
|
16
20
|
class { 'freighthop::pkgs':
|
17
21
|
packages => $packages,
|
18
22
|
} ->
|
@@ -1,7 +1,8 @@
|
|
1
1
|
class freighthop(
|
2
2
|
$databases,
|
3
3
|
$database_users,
|
4
|
-
$packages =
|
4
|
+
$packages = $freighthop::params::packages,
|
5
|
+
$ppas = $freighthop::params::ppas,
|
5
6
|
$ruby_version = $freighthop::params::ruby_version,
|
6
7
|
$app_name = $freighthop::params::app_name,
|
7
8
|
$app_root = $freighthop::params::app_root,
|
@@ -13,6 +14,9 @@ class freighthop(
|
|
13
14
|
) inherits freighthop::params {
|
14
15
|
include apt
|
15
16
|
|
17
|
+
class { 'freighthop::ppas':
|
18
|
+
ppas => $ppas,
|
19
|
+
} ->
|
16
20
|
class { 'freighthop::pkgs':
|
17
21
|
packages => $packages,
|
18
22
|
} ->
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freighthop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -141,6 +141,7 @@ files:
|
|
141
141
|
- local_modules/freighthop/manifests/params.pp
|
142
142
|
- local_modules/freighthop/manifests/pkgs.pp
|
143
143
|
- local_modules/freighthop/manifests/postgres.pp
|
144
|
+
- local_modules/freighthop/manifests/ppas.pp
|
144
145
|
- local_modules/freighthop/manifests/rbenv.pp
|
145
146
|
- local_modules/freighthop/manifests/redis.pp
|
146
147
|
- local_modules/freighthop/templates/nginx/vagrant-rails.conf.erb
|
@@ -270,6 +271,7 @@ files:
|
|
270
271
|
- modules/freighthop/manifests/params.pp
|
271
272
|
- modules/freighthop/manifests/pkgs.pp
|
272
273
|
- modules/freighthop/manifests/postgres.pp
|
274
|
+
- modules/freighthop/manifests/ppas.pp
|
273
275
|
- modules/freighthop/manifests/rbenv.pp
|
274
276
|
- modules/freighthop/manifests/redis.pp
|
275
277
|
- modules/freighthop/templates/nginx/vagrant-rails.conf.erb
|
@@ -656,7 +658,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
656
658
|
version: '0'
|
657
659
|
segments:
|
658
660
|
- 0
|
659
|
-
hash:
|
661
|
+
hash: -3032814133313184341
|
660
662
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
661
663
|
none: false
|
662
664
|
requirements:
|
@@ -665,7 +667,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
665
667
|
version: '0'
|
666
668
|
segments:
|
667
669
|
- 0
|
668
|
-
hash:
|
670
|
+
hash: -3032814133313184341
|
669
671
|
requirements: []
|
670
672
|
rubyforge_project:
|
671
673
|
rubygems_version: 1.8.23
|