proviso 0.2.0.beta3 → 0.2.0.beta4

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0.beta3
1
+ 0.2.0.beta4
@@ -11,6 +11,7 @@ module Proviso::Command
11
11
  error "config does not exists run config:create"
12
12
  end
13
13
  end
14
+
14
15
 
15
16
  def add
16
17
  if @args.length == 3
@@ -32,7 +33,12 @@ module Proviso::Command
32
33
 
33
34
  def create
34
35
  data = { "config" => { "hello" => 'world'}}
35
- FileUtils.mkdir_p(File.join(home_directory, PROVISO_PATH))
36
+ if @args.length == 1
37
+ data = YAML.load_file(yaml_file) if File.exists?(yaml_file)
38
+ data.merge!(@args.first => {})
39
+ else
40
+ FileUtils.mkdir_p(File.join(home_directory, PROVISO_PATH))
41
+ end
36
42
  open(yaml_file, 'w') { |f| f.write data.to_yaml }
37
43
  display "created config file"
38
44
  end
data/proviso.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{proviso}
8
- s.version = "0.2.0.beta3"
8
+ s.version = "0.2.0.beta4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tom Wilson"]
12
- s.date = %q{2010-08-16}
12
+ s.date = %q{2010-08-17}
13
13
  s.default_executable = %q{proviso}
14
14
  s.description = %q{Proviso is a cli plugin system that focuses on provisioning servers, but you can create plugins for anything.}
15
15
  s.email = %q{tom@jackhq.com}
data/readme.md CHANGED
@@ -1,6 +1,67 @@
1
- = proviso
1
+ # Proviso
2
+
3
+ Proviso is a server provisioning tool. It is a plugin based system that
4
+ enables you to build your specific plugins to use for your server provisioning
5
+
6
+ ## Features
7
+
8
+ * Command Line Options
9
+ * Config
10
+ * Helpers
11
+ * Plugins
12
+
13
+ ## Command Line Options
14
+
15
+ You can use command line options to specify your settings
16
+
17
+ proviso ec2:create --image_id ami-123456
18
+
19
+ ## Config
20
+
21
+ Proviso makes it easy to manage configuration settings for you plugins
22
+
23
+ It includes a command line api that allows you to create, add and list
24
+ configuration settings that your plugin can read to make your server provisioning
25
+ super easy!
26
+
27
+ * Create Config
28
+
29
+ proviso config:create [section]
30
+
31
+ eg.
32
+
33
+ proviso config:create ec2
34
+
35
+ * Add config settings
36
+
37
+ proviso config:add [section] [key] [value]
38
+
39
+ eg.
40
+
41
+ proviso config:add ec2 access_key_id 123456789
42
+
43
+ * List Config
44
+
45
+ proviso config:list
46
+
47
+ Lists all of the configuration settings.
48
+
49
+ # Plugins
50
+
51
+ Proviso is completely plugin based, all of the provision software is
52
+ actual plugins, which makes it so awesome.
53
+
54
+ So far there are two plugins:
55
+
56
+ * ec2 - Provision EC2 servers with this plugin
57
+
58
+ proviso plugins:install git://github.com/jackhq/proviso_ec2.git
59
+
60
+ * zerigo - Link IP to FQDN with this plugin
61
+
62
+ proviso plugins:install git://github.com/jackhq/proviso_zerigo.git
63
+
2
64
 
3
- Description goes here.
4
65
 
5
66
  == Note on Patches/Pull Requests
6
67
 
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 2
8
8
  - 0
9
- - beta3
10
- version: 0.2.0.beta3
9
+ - beta4
10
+ version: 0.2.0.beta4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Wilson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-16 00:00:00 -04:00
18
+ date: 2010-08-17 00:00:00 -04:00
19
19
  default_executable: proviso
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency