conan 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/conan +47 -2
- data/lib/conan/deployment.rb +0 -5
- data/lib/conan/deployment/chef.rb +1 -1
- data/lib/conan/initializer.rb +11 -6
- data/lib/conan/initializer.rbc +1523 -0
- data/lib/conan/settings.rb +34 -0
- data/lib/conan/settings.rbc +807 -0
- data/lib/conan/template/config/deploy.rb +7 -2
- data/lib/conan/template/deploy/chef/dna/base.json +2 -2
- data/lib/conan/version.rb +3 -0
- data/lib/conan/version.rbc +130 -0
- metadata +10 -6
- data/lib/conan/template/deploy/chef/bootstrap.sh +0 -52
@@ -1,10 +1,10 @@
|
|
1
1
|
# Configuration
|
2
2
|
|
3
3
|
# Assume that we are deploying from the "origin" remote.
|
4
|
-
set :repository, `git remote -v | grep
|
4
|
+
set :repository, `git remote -v | grep -m1 origin | awk '{print $2}'`.chomp
|
5
5
|
|
6
6
|
# Hopefully, your application name matches the repository name.
|
7
|
-
set :application,
|
7
|
+
set :application, "{{APPLICATION}}"
|
8
8
|
|
9
9
|
# Files and directories to persist between deployments:
|
10
10
|
set :shared_paths, %w[
|
@@ -42,4 +42,9 @@ set :user, "rails"
|
|
42
42
|
set :deploy_to, "/mnt/#{application}"
|
43
43
|
|
44
44
|
# Let Conan take over
|
45
|
+
require "conan/version"
|
46
|
+
unless Conan::VERSION == "{{VERSION}}"
|
47
|
+
$stderr.puts "Warning: Conan version mismatch."
|
48
|
+
end
|
49
|
+
|
45
50
|
require "conan/capistrano"
|
@@ -0,0 +1,130 @@
|
|
1
|
+
!RBIX
|
2
|
+
7927234798965029024
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
28
|
13
|
+
99
|
14
|
+
7
|
15
|
+
0
|
16
|
+
65
|
17
|
+
49
|
18
|
+
1
|
19
|
+
2
|
20
|
+
13
|
21
|
+
99
|
22
|
+
12
|
23
|
+
7
|
24
|
+
2
|
25
|
+
12
|
26
|
+
7
|
27
|
+
3
|
28
|
+
12
|
29
|
+
65
|
30
|
+
12
|
31
|
+
49
|
32
|
+
4
|
33
|
+
4
|
34
|
+
15
|
35
|
+
49
|
36
|
+
2
|
37
|
+
0
|
38
|
+
15
|
39
|
+
2
|
40
|
+
11
|
41
|
+
I
|
42
|
+
6
|
43
|
+
I
|
44
|
+
0
|
45
|
+
I
|
46
|
+
0
|
47
|
+
I
|
48
|
+
0
|
49
|
+
n
|
50
|
+
p
|
51
|
+
5
|
52
|
+
x
|
53
|
+
5
|
54
|
+
Conan
|
55
|
+
x
|
56
|
+
11
|
57
|
+
open_module
|
58
|
+
x
|
59
|
+
15
|
60
|
+
__module_init__
|
61
|
+
M
|
62
|
+
1
|
63
|
+
n
|
64
|
+
n
|
65
|
+
x
|
66
|
+
5
|
67
|
+
Conan
|
68
|
+
i
|
69
|
+
12
|
70
|
+
5
|
71
|
+
66
|
72
|
+
65
|
73
|
+
7
|
74
|
+
0
|
75
|
+
7
|
76
|
+
1
|
77
|
+
64
|
78
|
+
49
|
79
|
+
2
|
80
|
+
2
|
81
|
+
11
|
82
|
+
I
|
83
|
+
3
|
84
|
+
I
|
85
|
+
0
|
86
|
+
I
|
87
|
+
0
|
88
|
+
I
|
89
|
+
0
|
90
|
+
n
|
91
|
+
p
|
92
|
+
3
|
93
|
+
x
|
94
|
+
7
|
95
|
+
VERSION
|
96
|
+
s
|
97
|
+
5
|
98
|
+
0.2.0
|
99
|
+
x
|
100
|
+
9
|
101
|
+
const_set
|
102
|
+
p
|
103
|
+
3
|
104
|
+
I
|
105
|
+
2
|
106
|
+
I
|
107
|
+
2
|
108
|
+
I
|
109
|
+
c
|
110
|
+
x
|
111
|
+
46
|
112
|
+
/home/paul/Projects/conan/lib/conan/version.rb
|
113
|
+
p
|
114
|
+
0
|
115
|
+
x
|
116
|
+
13
|
117
|
+
attach_method
|
118
|
+
p
|
119
|
+
3
|
120
|
+
I
|
121
|
+
0
|
122
|
+
I
|
123
|
+
1
|
124
|
+
I
|
125
|
+
1c
|
126
|
+
x
|
127
|
+
46
|
128
|
+
/home/paul/Projects/conan/lib/conan/version.rb
|
129
|
+
p
|
130
|
+
0
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul Battley
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-08-18 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -43,11 +43,13 @@ extra_rdoc_files: []
|
|
43
43
|
|
44
44
|
files:
|
45
45
|
- bin/conan
|
46
|
+
- lib/conan/settings.rb
|
46
47
|
- lib/conan/capistrano.rb
|
47
48
|
- lib/conan/smart_hash_merge.rb
|
48
49
|
- lib/conan/deployment/git.rb
|
49
50
|
- lib/conan/deployment/chef.rb
|
50
51
|
- lib/conan/deployment/deploy.rb
|
52
|
+
- lib/conan/settings.rbc
|
51
53
|
- lib/conan/deployment.rb
|
52
54
|
- lib/conan/template/config/servers.json
|
53
55
|
- lib/conan/template/config/deploy.rb
|
@@ -63,10 +65,12 @@ files:
|
|
63
65
|
- lib/conan/template/deploy/chef/recipes/Rakefile
|
64
66
|
- lib/conan/template/deploy/chef/recipes/certificates/README
|
65
67
|
- lib/conan/template/deploy/chef/recipes/site-cookbooks/README
|
66
|
-
- lib/conan/template/deploy/chef/bootstrap.sh
|
67
68
|
- lib/conan/template/CONAN_TODO
|
68
69
|
- lib/conan/template/Capfile
|
70
|
+
- lib/conan/version.rb
|
71
|
+
- lib/conan/version.rbc
|
69
72
|
- lib/conan/initializer.rb
|
73
|
+
- lib/conan/initializer.rbc
|
70
74
|
- README.md
|
71
75
|
has_rdoc: true
|
72
76
|
homepage: http://github.com/madebymany/conan
|
@@ -1,52 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
# Bootstrap chef on Ubuntu 10.04
|
3
|
-
|
4
|
-
function inform {
|
5
|
-
status=$1
|
6
|
-
echo
|
7
|
-
echo -e "\e[33m• ${1}\e[0m"
|
8
|
-
echo
|
9
|
-
}
|
10
|
-
|
11
|
-
function happy_ending {
|
12
|
-
echo
|
13
|
-
echo -e "\e[32m✓ ${1}\e[0m"
|
14
|
-
exit 0
|
15
|
-
}
|
16
|
-
|
17
|
-
function croak {
|
18
|
-
echo
|
19
|
-
echo -e "\e[31m✗ $status failed. Aborting.\e[0m"
|
20
|
-
exit 1
|
21
|
-
}
|
22
|
-
|
23
|
-
command -v chef-solo >/dev/null && \
|
24
|
-
happy_ending "Chef is already bootstrapped. Nothing more to do."
|
25
|
-
|
26
|
-
inform "Updating package index"
|
27
|
-
apt-get update || croak
|
28
|
-
|
29
|
-
inform "Setting up build environment"
|
30
|
-
apt-get install -y build-essential || croak
|
31
|
-
|
32
|
-
inform "Installing Ruby Enterprise Edition"
|
33
|
-
case `uname -m` in
|
34
|
-
x86_64)
|
35
|
-
REE="http://rubyforge.org/frs/download.php/71098/ruby-enterprise_1.8.7-2010.02_amd64_ubuntu10.04.deb"
|
36
|
-
;;
|
37
|
-
*)
|
38
|
-
REE="http://rubyforge.org/frs/download.php/71100/ruby-enterprise_1.8.7-2010.02_i386_ubuntu10.04.deb"
|
39
|
-
;;
|
40
|
-
esac
|
41
|
-
echo "Fetching ${REE}"
|
42
|
-
curl -s -L -o ree.deb "${REE}" || croak
|
43
|
-
dpkg -i ree.deb || croak
|
44
|
-
rm ree.deb
|
45
|
-
|
46
|
-
inform "Installing Chef"
|
47
|
-
gem install -v 0.5.8 ohai --no-rdoc --no-ri || croak
|
48
|
-
gem install -v 0.9.12 chef --no-rdoc --no-ri || croak
|
49
|
-
|
50
|
-
mkdir -p /etc/chef
|
51
|
-
|
52
|
-
happy_ending "Chef has been bootstrapped!"
|