summaryrefslogtreecommitdiffstats
path: root/everest-bootstrap
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2008-05-12 13:31:22 -0400
committerBrenton Leanhardt <bleanhar@redhat.com>2008-05-12 13:31:22 -0400
commit84ffd3b5ec8097076c51368cf3a3e87540619554 (patch)
tree75dd0396f8d5b5ed4de8c2606856cf136d814e53 /everest-bootstrap
parent6469d38fd818b927fc895bd93b6e56dba29ba7cd (diff)
downloadtools-84ffd3b5ec8097076c51368cf3a3e87540619554.tar.gz
tools-84ffd3b5ec8097076c51368cf3a3e87540619554.tar.xz
tools-84ffd3b5ec8097076c51368cf3a3e87540619554.zip
Fix minor but in everest-bootstrap whenever parameters have no defaults
Diffstat (limited to 'everest-bootstrap')
-rw-r--r--everest-bootstrap/ext/rubygem-everest-bootstrap.spec4
-rw-r--r--everest-bootstrap/lib/everest-bootstrap/core.rb3
-rw-r--r--everest-bootstrap/lib/everest-bootstrap/version.rb2
3 files changed, 5 insertions, 4 deletions
diff --git a/everest-bootstrap/ext/rubygem-everest-bootstrap.spec b/everest-bootstrap/ext/rubygem-everest-bootstrap.spec
index 7f3f8fd..4b00781 100644
--- a/everest-bootstrap/ext/rubygem-everest-bootstrap.spec
+++ b/everest-bootstrap/ext/rubygem-everest-bootstrap.spec
@@ -6,8 +6,8 @@
Summary: Tool for provisioning virtual machines
Name: rubygem-%{gemname}
-Version: 0.4.0
-Release: 6%{?dist}
+Version: 0.4.1
+Release: 1%{?dist}
Group: Development/Languages
License: Ruby License/GPL
Source0: %{gemname}-%{version}.gem
diff --git a/everest-bootstrap/lib/everest-bootstrap/core.rb b/everest-bootstrap/lib/everest-bootstrap/core.rb
index acd608b..6b380c8 100644
--- a/everest-bootstrap/lib/everest-bootstrap/core.rb
+++ b/everest-bootstrap/lib/everest-bootstrap/core.rb
@@ -41,7 +41,8 @@ module EverestBootstrap
f.instance_variable_set(:@repo, @repo)
f.instance_variable_set(:@machine_name, machine_name)
def f.default
- self["default"].gsub("%repo%", @repo).gsub("%machine_name%", @machine_name)
+ # handle there case where there is no default
+ self["default"].gsub("%repo%", @repo).gsub("%machine_name%", @machine_name) rescue ""
end
f
diff --git a/everest-bootstrap/lib/everest-bootstrap/version.rb b/everest-bootstrap/lib/everest-bootstrap/version.rb
index 92d5d9d..95162e1 100644
--- a/everest-bootstrap/lib/everest-bootstrap/version.rb
+++ b/everest-bootstrap/lib/everest-bootstrap/version.rb
@@ -2,7 +2,7 @@ module EverestBootstrap
module Version
MAJOR = 0
MINOR = 4
- BUILD = 0
+ BUILD = 1
STRING = [MAJOR, MINOR, BUILD].join(".")
end