Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed add to install

  • Loading branch information...
commit 13a8fdff82bc0a4c77dfd0c0db0facc7dbb25e33 1 parent 38c6a67
@azimux authored
View
4 README
@@ -41,10 +41,10 @@ track empty directories (such as git)
ext update_ignores
Adds the subproject paths to the ignore feature of the top level project. This
-should rarely need to be ran because ext add automatically updates the ignores
+should rarely need to be ran because 'ext install' automatically updates the ignores
for the main project.
-ext add <repository:branch> [path] [project_name]
+ext install <repository:branch> [path] [project_name]
Adds a subproject to the main project. If the project_type is set in .externals,
ext can figure out the path on its own (ie, if it's set to rails, if the
View
4 Rakefile
@@ -11,7 +11,7 @@ end
gem_specification = Gem::Specification.new do |specification|
specification.name = 'ext'
- specification.version = '0.0.1'
+ specification.version = '0.0.2'
specification.platform = Gem::Platform::RUBY
specification.summary =
@@ -23,7 +23,7 @@ projects that have some plugins managed by svn and some managed by git.}
to the scm:externals feature of subversion. It's particularly useful for rails
projects that have some plugins managed by svn and some managed by git.
-For example, "ext add git://github.com/rails/rails.git" from within a rails
+For example, "ext install git://github.com/rails/rails.git" from within a rails
application directory will realize that this belongs in the vendor/rails folder.
It will also realize that this URL is a git repository and clone it into that
folder.
View
6 lib/externals/ext.rb
@@ -10,12 +10,12 @@ module Externals
# Main commands only operate on the main project
FULL_COMMANDS_HASH = [[:checkout, ""], [:export, ""], [:status, ""], [:update, ""]]
SHORT_COMMANDS_HASH = [[:co, ""], [:ex, ""], [:st, ""], [:up, ""]]
- MAIN_COMMANDS_HASH = [[:update_ignore, ""], [:add, ""], [:init, ""], [:touch_emptydirs, ""], [:help, ""]]
+ MAIN_COMMANDS_HASH = [[:update_ignore, ""], [:install, ""], [:init, ""], [:touch_emptydirs, ""], [:help, ""]]
FULL_COMMANDS = [:checkout, :export, :status, :update]
SHORT_COMMANDS = [:co, :ex, :st, :up]
- MAIN_COMMANDS = [:update_ignore, :add, :init, :touch_emptydirs, :help]
+ MAIN_COMMANDS = [:update_ignore, :install, :init, :touch_emptydirs, :help]
COMMANDS = FULL_COMMANDS + SHORT_COMMANDS + MAIN_COMMANDS
@@ -206,7 +206,7 @@ def self.project_classes
end
end
- def add args, options
+ def install args, options
init args, options unless File.exists? '.externals'
row = args.join " "
View
1  notes/todo.txt
@@ -9,3 +9,4 @@ Basically, everything specific to an scm belongs in those files and no where els
Currently the filling of scm specific options (such as --git and --svn) occurs in
ext.rb which is not OK.
+- change "add" command to "install"
View
6 test/test_checkout_with_subprojects_git.rb
@@ -24,11 +24,11 @@ def setup
`git init`
Ext.run "init"
raise " could not create .externals" unless File.exists? '.externals'
- Ext.run "add", "git://github.com/rails/acts_as_list.git"
+ Ext.run "install", "git://github.com/rails/acts_as_list.git"
- #add a couple svn managed subprojects
+ #install a couple svn managed subprojects
%w(foreign_key_migrations redhillonrails_core).each do |proj|
- Ext.run "add", "svn://rubyforge.org/var/svn/redhillonrails/trunk/vendor/plugins/#{proj}"
+ Ext.run "install", "svn://rubyforge.org/var/svn/redhillonrails/trunk/vendor/plugins/#{proj}"
end
GitProject.add_all
View
6 test/test_checkout_with_subprojects_svn.rb
@@ -33,12 +33,12 @@ def setup
Ext.run "init"
raise " could not create .externals" unless File.exists? '.externals'
%w(rails acts_as_list).each do |proj|
- Ext.run "add", "git://github.com/rails/#{proj}.git"
+ Ext.run "install", "git://github.com/rails/#{proj}.git"
end
- #add a couple svn managed subprojects
+ #install a couple svn managed subprojects
%w(foreign_key_migrations redhillonrails_core).each do |proj|
- Ext.run "add", "svn://rubyforge.org/var/svn/redhillonrails/trunk/vendor/plugins/#{proj}"
+ Ext.run "install", "svn://rubyforge.org/var/svn/redhillonrails/trunk/vendor/plugins/#{proj}"
end
SvnProject.add_all
Please sign in to comment.
Something went wrong with that request. Please try again.