Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Short aliases for all merge commands.

  • Loading branch information...
commit cd61f797292402e20d833fe84f4e1d13926bef1c 1 parent b50e215
Andrew Kirilenko iced authored
3  lib/iron_worker_ng/feature/binary/merge_exec.rb
View
@@ -40,7 +40,10 @@ def merge_exec(path)
@features << @exec
end
+ alias :exec :merge_exec
+
alias :merge_worker :merge_exec
+ alias :worker :merge_worker
def self.included(base)
IronWorkerNG::Code::Base.register_feature(:name => 'merge_exec', :for_klass => base, :args => 'PATH')
2  lib/iron_worker_ng/feature/common/merge_dir.rb
View
@@ -41,6 +41,8 @@ def merge_dir(path, dest = '')
@features << IronWorkerNG::Feature::Common::MergeDir::Feature.new(path, dest)
end
+ alias :dir :merge_dir
+
def self.included(base)
IronWorkerNG::Code::Base.register_feature(:name => 'merge_dir', :for_klass => base, :args => 'PATH[,DEST]')
end
2  lib/iron_worker_ng/feature/common/merge_file.rb
View
@@ -32,6 +32,8 @@ def merge_file(path, dest = '')
@features << IronWorkerNG::Feature::Common::MergeFile::Feature.new(path, dest)
end
+ alias :file :merge_file
+
def self.included(base)
IronWorkerNG::Code::Base.register_feature(:name => 'merge_file', :for_klass => base, :args => 'PATH[,DEST]')
end
3  lib/iron_worker_ng/feature/java/merge_exec.rb
View
@@ -50,7 +50,10 @@ def merge_exec(path, klass = nil)
@features << @exec
end
+ alias :exec :merge_exec
+
alias :merge_worker :merge_exec
+ alias :worker :merge_worker
def self.included(base)
IronWorkerNG::Code::Base.register_feature(:name => 'merge_exec', :for_klass => base, :args => 'PATH,CLASS')
2  lib/iron_worker_ng/feature/java/merge_jar.rb
View
@@ -31,6 +31,8 @@ def merge_jar(path)
@features << IronWorkerNG::Feature::Java::MergeJar::Feature.new(path)
end
+ alias :jar :merge_jar
+
def self.included(base)
IronWorkerNG::Code::Base.register_feature(:name => 'merge_jar', :for_klass => base, :args => 'PATH')
end
3  lib/iron_worker_ng/feature/node/merge_exec.rb
View
@@ -40,7 +40,10 @@ def merge_exec(path)
@features << @exec
end
+ alias :exec :merge_exec
+
alias :merge_worker :merge_exec
+ alias :worker :merge_worker
def self.included(base)
IronWorkerNG::Code::Base.register_feature(:name => 'merge_exec', :for_klass => base, :args => 'PATH')
3  lib/iron_worker_ng/feature/ruby/merge_exec.rb
View
@@ -46,7 +46,10 @@ def merge_exec(path, klass = nil)
@features << @exec
end
+ alias :exec :merge_exec
+
alias :merge_worker :merge_exec
+ alias :worker :merge_worker
def self.included(base)
IronWorkerNG::Code::Base.register_feature(:name => 'merge_exec', :for_klass => base, :args => 'PATH[,CLASS]')
2  lib/iron_worker_ng/feature/ruby/merge_gem.rb
View
@@ -70,6 +70,8 @@ def merge_gem(name, version = '>= 0')
@merge_gem_reqs << Bundler::Dependency.new(name, version.split(', '))
end
+ alias :gem :merge_gem
+
def merge_gem_fixate
IronWorkerNG::Logger.info 'Fixating gems dependencies'
2  lib/iron_worker_ng/feature/ruby/merge_gemfile.rb
View
@@ -34,6 +34,8 @@ def merge_gemfile(path, *groups)
@features << IronWorkerNG::Feature::Ruby::MergeGemfile::Feature.new(path, groups)
end
+ alias :gemfile :merge_gemfile
+
def self.included(base)
IronWorkerNG::Code::Base.register_feature(:name => 'merge_gemfile', :for_klass => base, :args => 'PATH[,GROUP...]')
end
Please sign in to comment.
Something went wrong with that request. Please try again.