nova-dsl 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -9,5 +9,5 @@ gem 'net-scp'
9
9
 
10
10
  group :development do
11
11
  gem 'rspec'
12
- gem 'metric_fu'
12
+ # gem 'metric_fu' ignore it because of the problems with versions
13
13
  end
data/example.sh CHANGED
@@ -2,9 +2,10 @@
2
2
 
3
3
  nova-dsl <<EOF1
4
4
 
5
- provision 'my new task' do
6
- image 324
5
+ provision 'gitorious-nova-test' do
6
+ image 134
7
7
  flavor 2
8
+ key sd
8
9
  end
9
10
 
10
11
  EOF1
@@ -1,5 +1,5 @@
1
1
  $:.push '.', '..'
2
- require "lib/nova-dsl"
2
+ require "nova-dsl"
3
3
 
4
4
  nova_list
5
5
 
@@ -1,8 +1,8 @@
1
1
  $:.push '.', '..'
2
2
 
3
3
  require 'nova-dsl'
4
- provision "dsl-test" do
5
- image 999
6
- flavor 3
7
- key 'gd1'
4
+ provision "gitorious-dsl-test" do
5
+ image 134
6
+ flavor 2
7
+ key 'gs'
8
8
  end
@@ -1,5 +1,7 @@
1
- $:.push '.', '..', File.expand_path("lib", __FILE__)
1
+ $:.push '.', '..', File.expand_path("lib", __FILE__), './lib'
2
2
 
3
+
4
+ require 'rubygems'
3
5
  require 'common/log'
4
6
  require 'nova/commands/nova_provision'
5
7
  require 'nova/commands/nova_list'
@@ -22,10 +22,13 @@ module NovaDsl
22
22
 
23
23
  configs[:security_groups] ||= %w(default)
24
24
 
25
- Common::system_call(:source => configs[:source]) {
25
+ results = Common::system_call(:source => configs[:source]) {
26
26
  "/usr/local/bin/nova boot --image #{configs[:image]} --flavor #{configs[:flavor]} --key_name #{configs[:key]} --security_groups #{configs[:security_groups]*','} #{configs[:name]}"
27
27
 
28
28
  }
29
+
30
+ LOGGER.debug("Provision output:")
31
+ LOGGER.debug("#{results[0][:out]}")
29
32
  end
30
33
 
31
34
  def nova_list(configs = {})
@@ -1,3 +1,3 @@
1
1
  module NovaDsl
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nova-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
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: 2012-04-10 00:00:00.000000000 Z
12
+ date: 2012-07-19 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Call this from a line nova-client
15
15
  email: