sambot 0.1.204 → 0.1.205
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sambot/cli.rb +6 -6
- data/lib/sambot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 673d0a7ac9002810436ab6e8cda426c63ff35bf0
|
4
|
+
data.tar.gz: 333f030d1b9ff31b13f4c6a485ad0248f9c88e52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4522aa577326e934c5d0c34a93f819867e3bff196c549fb28e1987f0101d044727ae217dbdbeecc08fdab1daa8ab47765bb70817969806402856eb03a83d6420
|
7
|
+
data.tar.gz: 25ea887fc256f5296afd8cef2424f5eff67905b5c82a20c0a5cf2464ccd34b8a83577a8ebbd5b4ffdce6f291a21cea02ba2d2dae255da0af885ffc88a185c8c2
|
data/lib/sambot/cli.rb
CHANGED
@@ -78,13 +78,13 @@ module Sambot
|
|
78
78
|
def create
|
79
79
|
execute do
|
80
80
|
opts = {
|
81
|
-
name
|
82
|
-
type
|
83
|
-
platforms
|
84
|
-
description
|
81
|
+
'name' => ask(' What is the name of this cookbook?'),
|
82
|
+
'type' => ask(' What type of cookbook will this be?', limited_to: %w[wrapper role]),
|
83
|
+
'platforms' => ask(' What operating system will this cookbook run on?', limited_to: %w[windows centos both]),
|
84
|
+
'description' => ask(' What does this cookbook do?')
|
85
85
|
}
|
86
|
-
opts[
|
87
|
-
opts[
|
86
|
+
opts['identifier'] = ask(' What will be the unique machiner identifier for this role cookbook i.e. TCA (TeamCity Agent) or RMQ (RabbitMQ role)?') if opts['type'] == 'role'
|
87
|
+
opts['platforms'] = opts['platforms'] == 'both' ? %w[centos windows] : [opts['platforms']]
|
88
88
|
Chef::Cookbook.create(Config.new(opts))
|
89
89
|
end
|
90
90
|
end
|
data/lib/sambot/version.rb
CHANGED