I'm sure this is really obvious, but I'm brand new to rubies. I want to use rake / albacore to automate some tasks. I want to pack it for use on my build server using bundler. Now I want to do one stupid task that personifies the sys account using mixlib-shellout. For this, I have the following gemfile:
source 'http://rubygems.org' gem 'mixlib-shellout' gem 'rake'
and the following rake file:
require 'rubygems' require 'bundler/setup' require 'mixlib/shellout' task :default do whomai = Mixlib::ShellOut.new("whoami.exe", :user => "username", :domain => "DOMAIN", :password => "password") whoami.run_command end
I ran
bundle install
and I only see that the rake is installed ... none of the other dependencies in the Gemfile.lock descriptor tree ... is this normal?
PS C:\Users\Ben\src\ruby_test> bundle install Fetching gem metadata from http://rubygems.org/........... Fetching gem metadata from http://rubygems.org/.. Resolving dependencies... Installing rake (10.1.0) Using bundler (1.3.5) Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Then i ran
bundle exec rake
and I get in return
rake aborted! cannot load such file -- mixlib/shellout C:/Users/Ben/src/ruby_test/rakefile.rb:4:in `require' C:/Users/Ben/src/ruby_test/rakefile.rb:4:in `<top (required)>' (See full trace by running task with --trace)
I am using ruby 2.0 and bundler 1.3.5
Any help gratefully received.
source share