example/gemfile.rb in qor_dsl-0.2.0 vs example/gemfile.rb in qor_dsl-0.2.1
- old
+ new
@@ -4,20 +4,23 @@
class Gemfile
include Qor::Dsl
default_configs [ENV['BUNDLE_GEMFILE'], File.join(File.dirname(__FILE__), 'Gemfile')]
- node :source
+ node :source, :default_value => 'http://rubygems.org'
node :gem
node :group do
node :gem
end
node :example do
node :gem, :inherit => true
end
end
+
+# Default Value
+Gemfile.first(:source)
# Methods for query
Gemfile.first(:gem)
Gemfile.first(:gem, 'unicorn')