conan 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -0,0 +1,34 @@
|
|
1
|
+
require "conan/version"
|
2
|
+
|
3
|
+
module Conan
|
4
|
+
class Settings
|
5
|
+
def initialize
|
6
|
+
@settings = defaults
|
7
|
+
end
|
8
|
+
|
9
|
+
def []=(k, v)
|
10
|
+
@settings[k] = v
|
11
|
+
end
|
12
|
+
|
13
|
+
def [](k)
|
14
|
+
@settings[k]
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
def defaults
|
19
|
+
{
|
20
|
+
"APPLICATION" => application_from_git_remote,
|
21
|
+
"COOKBOOK_REPOSITORY" => "git://github.com/madebymany/cookbooks.git",
|
22
|
+
"COOKBOOK_BRANCH" => "minimal",
|
23
|
+
"VERSION" => Conan::VERSION,
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
def application_from_git_remote
|
28
|
+
return nil unless File.exist?(".git")
|
29
|
+
remote = File.basename(`git remote -v | grep -m1 origin | awk '{print $2}'`).strip
|
30
|
+
return nil if remote.empty?
|
31
|
+
remote[/([^:\/]+)\.git$/, 1]
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,807 @@
|
|
1
|
+
!RBIX
|
2
|
+
7927234798965029024
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
37
|
13
|
+
5
|
14
|
+
7
|
15
|
+
0
|
16
|
+
64
|
17
|
+
47
|
18
|
+
49
|
19
|
+
1
|
20
|
+
1
|
21
|
+
15
|
22
|
+
99
|
23
|
+
7
|
24
|
+
2
|
25
|
+
65
|
26
|
+
49
|
27
|
+
3
|
28
|
+
2
|
29
|
+
13
|
30
|
+
99
|
31
|
+
12
|
32
|
+
7
|
33
|
+
4
|
34
|
+
12
|
35
|
+
7
|
36
|
+
5
|
37
|
+
12
|
38
|
+
65
|
39
|
+
12
|
40
|
+
49
|
41
|
+
6
|
42
|
+
4
|
43
|
+
15
|
44
|
+
49
|
45
|
+
4
|
46
|
+
0
|
47
|
+
15
|
48
|
+
2
|
49
|
+
11
|
50
|
+
I
|
51
|
+
6
|
52
|
+
I
|
53
|
+
0
|
54
|
+
I
|
55
|
+
0
|
56
|
+
I
|
57
|
+
0
|
58
|
+
n
|
59
|
+
p
|
60
|
+
7
|
61
|
+
s
|
62
|
+
13
|
63
|
+
conan/version
|
64
|
+
x
|
65
|
+
7
|
66
|
+
require
|
67
|
+
x
|
68
|
+
5
|
69
|
+
Conan
|
70
|
+
x
|
71
|
+
11
|
72
|
+
open_module
|
73
|
+
x
|
74
|
+
15
|
75
|
+
__module_init__
|
76
|
+
M
|
77
|
+
1
|
78
|
+
n
|
79
|
+
n
|
80
|
+
x
|
81
|
+
5
|
82
|
+
Conan
|
83
|
+
i
|
84
|
+
29
|
85
|
+
5
|
86
|
+
66
|
87
|
+
99
|
88
|
+
7
|
89
|
+
0
|
90
|
+
1
|
91
|
+
65
|
92
|
+
49
|
93
|
+
1
|
94
|
+
3
|
95
|
+
13
|
96
|
+
99
|
97
|
+
12
|
98
|
+
7
|
99
|
+
2
|
100
|
+
12
|
101
|
+
7
|
102
|
+
3
|
103
|
+
12
|
104
|
+
65
|
105
|
+
12
|
106
|
+
49
|
107
|
+
4
|
108
|
+
4
|
109
|
+
15
|
110
|
+
49
|
111
|
+
2
|
112
|
+
0
|
113
|
+
11
|
114
|
+
I
|
115
|
+
6
|
116
|
+
I
|
117
|
+
0
|
118
|
+
I
|
119
|
+
0
|
120
|
+
I
|
121
|
+
0
|
122
|
+
n
|
123
|
+
p
|
124
|
+
5
|
125
|
+
x
|
126
|
+
8
|
127
|
+
Settings
|
128
|
+
x
|
129
|
+
10
|
130
|
+
open_class
|
131
|
+
x
|
132
|
+
14
|
133
|
+
__class_init__
|
134
|
+
M
|
135
|
+
1
|
136
|
+
n
|
137
|
+
n
|
138
|
+
x
|
139
|
+
8
|
140
|
+
Settings
|
141
|
+
i
|
142
|
+
76
|
143
|
+
5
|
144
|
+
66
|
145
|
+
99
|
146
|
+
7
|
147
|
+
0
|
148
|
+
7
|
149
|
+
1
|
150
|
+
65
|
151
|
+
67
|
152
|
+
49
|
153
|
+
2
|
154
|
+
0
|
155
|
+
49
|
156
|
+
3
|
157
|
+
4
|
158
|
+
15
|
159
|
+
99
|
160
|
+
7
|
161
|
+
4
|
162
|
+
7
|
163
|
+
5
|
164
|
+
65
|
165
|
+
67
|
166
|
+
49
|
167
|
+
2
|
168
|
+
0
|
169
|
+
49
|
170
|
+
3
|
171
|
+
4
|
172
|
+
15
|
173
|
+
99
|
174
|
+
7
|
175
|
+
6
|
176
|
+
7
|
177
|
+
7
|
178
|
+
65
|
179
|
+
67
|
180
|
+
49
|
181
|
+
2
|
182
|
+
0
|
183
|
+
49
|
184
|
+
3
|
185
|
+
4
|
186
|
+
15
|
187
|
+
5
|
188
|
+
48
|
189
|
+
8
|
190
|
+
15
|
191
|
+
99
|
192
|
+
7
|
193
|
+
9
|
194
|
+
7
|
195
|
+
10
|
196
|
+
65
|
197
|
+
67
|
198
|
+
49
|
199
|
+
2
|
200
|
+
0
|
201
|
+
49
|
202
|
+
3
|
203
|
+
4
|
204
|
+
15
|
205
|
+
99
|
206
|
+
7
|
207
|
+
11
|
208
|
+
7
|
209
|
+
12
|
210
|
+
65
|
211
|
+
67
|
212
|
+
49
|
213
|
+
2
|
214
|
+
0
|
215
|
+
49
|
216
|
+
3
|
217
|
+
4
|
218
|
+
11
|
219
|
+
I
|
220
|
+
5
|
221
|
+
I
|
222
|
+
0
|
223
|
+
I
|
224
|
+
0
|
225
|
+
I
|
226
|
+
0
|
227
|
+
n
|
228
|
+
p
|
229
|
+
13
|
230
|
+
x
|
231
|
+
10
|
232
|
+
initialize
|
233
|
+
M
|
234
|
+
1
|
235
|
+
n
|
236
|
+
n
|
237
|
+
x
|
238
|
+
10
|
239
|
+
initialize
|
240
|
+
i
|
241
|
+
6
|
242
|
+
5
|
243
|
+
48
|
244
|
+
0
|
245
|
+
38
|
246
|
+
1
|
247
|
+
11
|
248
|
+
I
|
249
|
+
1
|
250
|
+
I
|
251
|
+
0
|
252
|
+
I
|
253
|
+
0
|
254
|
+
I
|
255
|
+
0
|
256
|
+
n
|
257
|
+
p
|
258
|
+
2
|
259
|
+
x
|
260
|
+
8
|
261
|
+
defaults
|
262
|
+
x
|
263
|
+
9
|
264
|
+
@settings
|
265
|
+
p
|
266
|
+
5
|
267
|
+
I
|
268
|
+
-1
|
269
|
+
I
|
270
|
+
5
|
271
|
+
I
|
272
|
+
0
|
273
|
+
I
|
274
|
+
6
|
275
|
+
I
|
276
|
+
6
|
277
|
+
x
|
278
|
+
47
|
279
|
+
/home/paul/Projects/conan/lib/conan/settings.rb
|
280
|
+
p
|
281
|
+
0
|
282
|
+
x
|
283
|
+
17
|
284
|
+
method_visibility
|
285
|
+
x
|
286
|
+
15
|
287
|
+
add_defn_method
|
288
|
+
x
|
289
|
+
3
|
290
|
+
[]=
|
291
|
+
M
|
292
|
+
1
|
293
|
+
n
|
294
|
+
n
|
295
|
+
x
|
296
|
+
3
|
297
|
+
[]=
|
298
|
+
i
|
299
|
+
14
|
300
|
+
39
|
301
|
+
0
|
302
|
+
20
|
303
|
+
0
|
304
|
+
20
|
305
|
+
1
|
306
|
+
13
|
307
|
+
18
|
308
|
+
3
|
309
|
+
49
|
310
|
+
1
|
311
|
+
2
|
312
|
+
15
|
313
|
+
11
|
314
|
+
I
|
315
|
+
6
|
316
|
+
I
|
317
|
+
2
|
318
|
+
I
|
319
|
+
2
|
320
|
+
I
|
321
|
+
2
|
322
|
+
n
|
323
|
+
p
|
324
|
+
2
|
325
|
+
x
|
326
|
+
9
|
327
|
+
@settings
|
328
|
+
x
|
329
|
+
3
|
330
|
+
[]=
|
331
|
+
p
|
332
|
+
5
|
333
|
+
I
|
334
|
+
-1
|
335
|
+
I
|
336
|
+
9
|
337
|
+
I
|
338
|
+
0
|
339
|
+
I
|
340
|
+
a
|
341
|
+
I
|
342
|
+
e
|
343
|
+
x
|
344
|
+
47
|
345
|
+
/home/paul/Projects/conan/lib/conan/settings.rb
|
346
|
+
p
|
347
|
+
2
|
348
|
+
x
|
349
|
+
1
|
350
|
+
k
|
351
|
+
x
|
352
|
+
1
|
353
|
+
v
|
354
|
+
x
|
355
|
+
2
|
356
|
+
[]
|
357
|
+
M
|
358
|
+
1
|
359
|
+
n
|
360
|
+
n
|
361
|
+
x
|
362
|
+
2
|
363
|
+
[]
|
364
|
+
i
|
365
|
+
8
|
366
|
+
39
|
367
|
+
0
|
368
|
+
20
|
369
|
+
0
|
370
|
+
49
|
371
|
+
1
|
372
|
+
1
|
373
|
+
11
|
374
|
+
I
|
375
|
+
3
|
376
|
+
I
|
377
|
+
1
|
378
|
+
I
|
379
|
+
1
|
380
|
+
I
|
381
|
+
1
|
382
|
+
n
|
383
|
+
p
|
384
|
+
2
|
385
|
+
x
|
386
|
+
9
|
387
|
+
@settings
|
388
|
+
x
|
389
|
+
2
|
390
|
+
[]
|
391
|
+
p
|
392
|
+
5
|
393
|
+
I
|
394
|
+
-1
|
395
|
+
I
|
396
|
+
d
|
397
|
+
I
|
398
|
+
0
|
399
|
+
I
|
400
|
+
e
|
401
|
+
I
|
402
|
+
8
|
403
|
+
x
|
404
|
+
47
|
405
|
+
/home/paul/Projects/conan/lib/conan/settings.rb
|
406
|
+
p
|
407
|
+
1
|
408
|
+
x
|
409
|
+
1
|
410
|
+
k
|
411
|
+
x
|
412
|
+
7
|
413
|
+
private
|
414
|
+
x
|
415
|
+
8
|
416
|
+
defaults
|
417
|
+
M
|
418
|
+
1
|
419
|
+
n
|
420
|
+
n
|
421
|
+
x
|
422
|
+
8
|
423
|
+
defaults
|
424
|
+
i
|
425
|
+
55
|
426
|
+
44
|
427
|
+
43
|
428
|
+
0
|
429
|
+
4
|
430
|
+
4
|
431
|
+
49
|
432
|
+
1
|
433
|
+
1
|
434
|
+
13
|
435
|
+
7
|
436
|
+
2
|
437
|
+
64
|
438
|
+
5
|
439
|
+
48
|
440
|
+
3
|
441
|
+
49
|
442
|
+
4
|
443
|
+
2
|
444
|
+
15
|
445
|
+
13
|
446
|
+
7
|
447
|
+
5
|
448
|
+
64
|
449
|
+
7
|
450
|
+
6
|
451
|
+
64
|
452
|
+
49
|
453
|
+
4
|
454
|
+
2
|
455
|
+
15
|
456
|
+
13
|
457
|
+
7
|
458
|
+
7
|
459
|
+
64
|
460
|
+
7
|
461
|
+
8
|
462
|
+
64
|
463
|
+
49
|
464
|
+
4
|
465
|
+
2
|
466
|
+
15
|
467
|
+
13
|
468
|
+
7
|
469
|
+
9
|
470
|
+
64
|
471
|
+
45
|
472
|
+
10
|
473
|
+
11
|
474
|
+
43
|
475
|
+
12
|
476
|
+
49
|
477
|
+
4
|
478
|
+
2
|
479
|
+
15
|
480
|
+
11
|
481
|
+
I
|
482
|
+
4
|
483
|
+
I
|
484
|
+
0
|
485
|
+
I
|
486
|
+
0
|
487
|
+
I
|
488
|
+
0
|
489
|
+
n
|
490
|
+
p
|
491
|
+
13
|
492
|
+
x
|
493
|
+
4
|
494
|
+
Hash
|
495
|
+
x
|
496
|
+
16
|
497
|
+
new_from_literal
|
498
|
+
s
|
499
|
+
11
|
500
|
+
APPLICATION
|
501
|
+
x
|
502
|
+
27
|
503
|
+
application_from_git_remote
|
504
|
+
x
|
505
|
+
3
|
506
|
+
[]=
|
507
|
+
s
|
508
|
+
19
|
509
|
+
COOKBOOK_REPOSITORY
|
510
|
+
s
|
511
|
+
41
|
512
|
+
git://github.com/madebymany/cookbooks.git
|
513
|
+
s
|
514
|
+
15
|
515
|
+
COOKBOOK_BRANCH
|
516
|
+
s
|
517
|
+
7
|
518
|
+
minimal
|
519
|
+
s
|
520
|
+
7
|
521
|
+
VERSION
|
522
|
+
x
|
523
|
+
5
|
524
|
+
Conan
|
525
|
+
n
|
526
|
+
x
|
527
|
+
7
|
528
|
+
VERSION
|
529
|
+
p
|
530
|
+
13
|
531
|
+
I
|
532
|
+
-1
|
533
|
+
I
|
534
|
+
12
|
535
|
+
I
|
536
|
+
0
|
537
|
+
I
|
538
|
+
18
|
539
|
+
I
|
540
|
+
9
|
541
|
+
I
|
542
|
+
14
|
543
|
+
I
|
544
|
+
14
|
545
|
+
I
|
546
|
+
15
|
547
|
+
I
|
548
|
+
1f
|
549
|
+
I
|
550
|
+
16
|
551
|
+
I
|
552
|
+
2a
|
553
|
+
I
|
554
|
+
17
|
555
|
+
I
|
556
|
+
37
|
557
|
+
x
|
558
|
+
47
|
559
|
+
/home/paul/Projects/conan/lib/conan/settings.rb
|
560
|
+
p
|
561
|
+
0
|
562
|
+
x
|
563
|
+
27
|
564
|
+
application_from_git_remote
|
565
|
+
M
|
566
|
+
1
|
567
|
+
n
|
568
|
+
n
|
569
|
+
x
|
570
|
+
27
|
571
|
+
application_from_git_remote
|
572
|
+
i
|
573
|
+
75
|
574
|
+
45
|
575
|
+
0
|
576
|
+
1
|
577
|
+
7
|
578
|
+
2
|
579
|
+
64
|
580
|
+
49
|
581
|
+
3
|
582
|
+
1
|
583
|
+
9
|
584
|
+
14
|
585
|
+
1
|
586
|
+
8
|
587
|
+
16
|
588
|
+
1
|
589
|
+
11
|
590
|
+
15
|
591
|
+
45
|
592
|
+
0
|
593
|
+
4
|
594
|
+
5
|
595
|
+
7
|
596
|
+
5
|
597
|
+
64
|
598
|
+
47
|
599
|
+
49
|
600
|
+
6
|
601
|
+
1
|
602
|
+
49
|
603
|
+
7
|
604
|
+
1
|
605
|
+
49
|
606
|
+
8
|
607
|
+
0
|
608
|
+
19
|
609
|
+
0
|
610
|
+
15
|
611
|
+
20
|
612
|
+
0
|
613
|
+
49
|
614
|
+
9
|
615
|
+
0
|
616
|
+
9
|
617
|
+
48
|
618
|
+
1
|
619
|
+
11
|
620
|
+
8
|
621
|
+
49
|
622
|
+
1
|
623
|
+
15
|
624
|
+
20
|
625
|
+
0
|
626
|
+
7
|
627
|
+
10
|
628
|
+
13
|
629
|
+
70
|
630
|
+
9
|
631
|
+
70
|
632
|
+
15
|
633
|
+
44
|
634
|
+
43
|
635
|
+
11
|
636
|
+
7
|
637
|
+
12
|
638
|
+
78
|
639
|
+
49
|
640
|
+
13
|
641
|
+
2
|
642
|
+
6
|
643
|
+
10
|
644
|
+
79
|
645
|
+
49
|
646
|
+
14
|
647
|
+
2
|
648
|
+
11
|
649
|
+
I
|
650
|
+
5
|
651
|
+
I
|
652
|
+
1
|
653
|
+
I
|
654
|
+
0
|
655
|
+
I
|
656
|
+
0
|
657
|
+
n
|
658
|
+
p
|
659
|
+
15
|
660
|
+
x
|
661
|
+
4
|
662
|
+
File
|
663
|
+
n
|
664
|
+
s
|
665
|
+
4
|
666
|
+
.git
|
667
|
+
x
|
668
|
+
6
|
669
|
+
exist?
|
670
|
+
n
|
671
|
+
s
|
672
|
+
50
|
673
|
+
git remote -v | grep -m1 origin | awk '{print $2}'
|
674
|
+
x
|
675
|
+
1
|
676
|
+
`
|
677
|
+
x
|
678
|
+
8
|
679
|
+
basename
|
680
|
+
x
|
681
|
+
5
|
682
|
+
strip
|
683
|
+
x
|
684
|
+
6
|
685
|
+
empty?
|
686
|
+
n
|
687
|
+
x
|
688
|
+
6
|
689
|
+
Regexp
|
690
|
+
s
|
691
|
+
15
|
692
|
+
([^:\/]+)\.git$
|
693
|
+
x
|
694
|
+
3
|
695
|
+
new
|
696
|
+
x
|
697
|
+
2
|
698
|
+
[]
|
699
|
+
p
|
700
|
+
15
|
701
|
+
I
|
702
|
+
-1
|
703
|
+
I
|
704
|
+
1b
|
705
|
+
I
|
706
|
+
0
|
707
|
+
I
|
708
|
+
1c
|
709
|
+
I
|
710
|
+
10
|
711
|
+
I
|
712
|
+
0
|
713
|
+
I
|
714
|
+
11
|
715
|
+
I
|
716
|
+
1d
|
717
|
+
I
|
718
|
+
25
|
719
|
+
I
|
720
|
+
1e
|
721
|
+
I
|
722
|
+
31
|
723
|
+
I
|
724
|
+
0
|
725
|
+
I
|
726
|
+
32
|
727
|
+
I
|
728
|
+
1f
|
729
|
+
I
|
730
|
+
4b
|
731
|
+
x
|
732
|
+
47
|
733
|
+
/home/paul/Projects/conan/lib/conan/settings.rb
|
734
|
+
p
|
735
|
+
1
|
736
|
+
x
|
737
|
+
6
|
738
|
+
remote
|
739
|
+
p
|
740
|
+
13
|
741
|
+
I
|
742
|
+
2
|
743
|
+
I
|
744
|
+
5
|
745
|
+
I
|
746
|
+
10
|
747
|
+
I
|
748
|
+
9
|
749
|
+
I
|
750
|
+
1e
|
751
|
+
I
|
752
|
+
d
|
753
|
+
I
|
754
|
+
2c
|
755
|
+
I
|
756
|
+
11
|
757
|
+
I
|
758
|
+
30
|
759
|
+
I
|
760
|
+
12
|
761
|
+
I
|
762
|
+
3e
|
763
|
+
I
|
764
|
+
1b
|
765
|
+
I
|
766
|
+
4c
|
767
|
+
x
|
768
|
+
47
|
769
|
+
/home/paul/Projects/conan/lib/conan/settings.rb
|
770
|
+
p
|
771
|
+
0
|
772
|
+
x
|
773
|
+
13
|
774
|
+
attach_method
|
775
|
+
p
|
776
|
+
3
|
777
|
+
I
|
778
|
+
2
|
779
|
+
I
|
780
|
+
4
|
781
|
+
I
|
782
|
+
1d
|
783
|
+
x
|
784
|
+
47
|
785
|
+
/home/paul/Projects/conan/lib/conan/settings.rb
|
786
|
+
p
|
787
|
+
0
|
788
|
+
x
|
789
|
+
13
|
790
|
+
attach_method
|
791
|
+
p
|
792
|
+
5
|
793
|
+
I
|
794
|
+
0
|
795
|
+
I
|
796
|
+
1
|
797
|
+
I
|
798
|
+
9
|
799
|
+
I
|
800
|
+
3
|
801
|
+
I
|
802
|
+
25
|
803
|
+
x
|
804
|
+
47
|
805
|
+
/home/paul/Projects/conan/lib/conan/settings.rb
|
806
|
+
p
|
807
|
+
0
|