class MxxRu::Externals::Hg
Attributes
tag[R]
tag=[R]
Public Class Methods
new(name) { |self| ... }
click to toggle source
# File lib/mxx_ru/externals.rb, line 584 def initialize(name) defaults(name) yield self if block_given? Registry::handle_external(@name, self) end
Public Instance Methods
define_rules(old_or_new)
click to toggle source
# File lib/mxx_ru/externals.rb, line 600 def define_rules(old_or_new) define(old_or_new) do |tmp_dir| sh_args = ['hg', 'clone'] sh_args << '--updaterev' << @tag.to_s if @tag push_options_to(sh_args) sh_args << @url << tmp_dir sh *sh_args end end
make_hash()
click to toggle source
# File lib/mxx_ru/externals.rb, line 596 def make_hash options_to_map.merge!( basics_to_map ).merge!( { :tag => @tag } ) end