Sha256: b27f2a6800dda0630c388a74f07ff5c7261d140f14e9c23aefa45b19e360df83
Contents?: true
Size: 856 Bytes
Versions: 1
Compression:
Stored size: 856 Bytes
Contents
#!/usr/bin/env ruby require 'qor_dsl' class Gemfile include Qor::Dsl default_configs [ENV['BUNDLE_GEMFILE'], File.join(File.dirname(__FILE__), 'Gemfile')] node :source node :gem node :group do node :gem end node :example do node :gem, :inherit => true end end # Methods for query Gemfile.first(:gem) Gemfile.first(:gem, 'unicorn') Gemfile.find(:gem) Gemfile.find(:gem, 'rails') Gemfile.find(:gem) do |n| !!n.options[:git].nil? end Gemfile.find(:group, 'development').find(:gem) Gemfile.deep_find(:gem) Gemfile.deep_find(:gem) do |n| # Find all gems used in development environment parent = n.parent parent.root? || parent.is_node?(:group, :development) end # Methods for node node = Gemfile.find(:gem, 'devise') node.name node.value node.options node.data node.config node.parent node.parents node.root node.root?
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qor_dsl-0.2.0 | example/gemfile.rb |