diff --git a/README.md b/README.md index e570704..f1d32dc 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,12 @@ Features Usage ----- -Much like git, you initialize your project directory by adding your deploy targets first. +Much like git, you initialize your project directory by adding your deploy targets first. Once you have one set you can view the active target with `atf target`. If you want to deploy from there you just execute one of the deploy commands. **Simple Setup Example** - + # Add production atf target add production vividboarder@mycompany.com MY_SECURITY_TOKEN # Deploy to production @@ -56,7 +56,7 @@ It takes a file of the format: src/classes/MyClass.cls src/triggers/MyTrigger.trigger -You can generate a file like this using `git diff --no-commit-id --name-only` or the script included +You can generate a file like this using `git diff --no-commit-id --name-only` or the script included in the `examples` directory. Why This Over Metaforce? @@ -72,6 +72,13 @@ Must have ruby 1.9 and gem installed git clone git://github.com/ViViDboarder/abuse-the-force.git cd abuse-the-force + +If you have Rake + + rake install + +Or you can do it with `gem` + gem build abusetheforce.gemspec gem install abusetheforce-X.X.X.gem # make sure the proper version is present diff --git a/Rakefile b/Rakefile index 6ba2d0c..1edf8f9 100644 --- a/Rakefile +++ b/Rakefile @@ -1,8 +1,18 @@ +$:.push File.expand_path('../lib', __FILE__) require 'rake/testtask' +require 'abusetheforce/version' Rake::TestTask.new do |t| t.libs << 'test' end -desc "Run tests" -task :default => :test \ No newline at end of file +task :default => :build + +desc "Build the gem" +task :build do + system "gem build abusetheforce.gemspec" +end + +task :install => [:build] do + system "gem install abusetheforce-#{AbuseTheForce::VERSION}.gem" +end \ No newline at end of file