From anthonyeden at gmail.com Sun Mar 4 12:58:35 2007 From: anthonyeden at gmail.com (Anthony Eden) Date: Sun, 4 Mar 2007 12:58:35 -0500 Subject: [Backupgem-users] Problem Defining :content block Message-ID: Right now, working from trunk, when I define my own content block: action(:content) do # my stuff here result end I recieve: usr/local/lib/ruby/gems/1.8/gems/backupgem-0.0.7/lib/backup/actor.rb:167:in `content': Unknown option in :content. Try :is_file, :is_folder or :is_contents_of (RuntimeError) from /usr/local/lib/ruby/gems/1.8/gems/backupgem-0.0.7/lib/backup/actor.rb:64:in `send' from /usr/local/lib/ruby/gems/1.8/gems/backupgem-0.0.7/lib/backup/actor.rb:64:in `send_and_store' from /usr/local/lib/ruby/gems/1.8/gems/backupgem-0.0.7/lib/backup/actor.rb:57:in `start_process!' from /usr/local/lib/ruby/gems/1.8/gems/backupgem-0.0.7/lib/backup/actor.rb:55:in `each' from /usr/local/lib/ruby/gems/1.8/gems/backupgem-0.0.7/lib/backup/actor.rb:55:in `start_process!' from /usr/local/lib/ruby/gems/1.8/gems/backupgem-0.0.7/lib/backup/cli.rb:98:in `execute_recipes!' from /usr/local/lib/ruby/gems/1.8/gems/backupgem-0.0.7/lib/backup/cli.rb:68:in `execute!' from /usr/local/lib/ruby/gems/1.8/gems/backupgem-0.0.7/lib/backup/cli.rb:10:in `execute!' from /usr/local/lib/ruby/gems/1.8/gems/backupgem-0.0.7/bin/backup:12 from /usr/local/bin/backup:16:in `load' from /usr/local/bin/backup:16 I am trying to determine how to fix it and will provide a patch once I track it down, but I figured I'd let you all know. -- Cell: 808 782-5046 Current Location: Melbourne, FL From anthonyeden at gmail.com Sun Mar 4 13:08:05 2007 From: anthonyeden at gmail.com (Anthony Eden) Date: Sun, 4 Mar 2007 13:08:05 -0500 Subject: [Backupgem-users] Problem Defining :content block (Solved?) Message-ID: I think I understand now why it was blowing up. I was executing the following: backup mysql.rb It would blow up with the error with that invocation. However I switched to: backup -r mysql.rb And it works fine. So what exactly is passed as args vs. options? Perhaps the usage should just state: Usage: #{$0} [options] Alternatively let args actually collect recipe files to use? Thoughts? V/r Anthony -- Cell: 808 782-5046 Current Location: Melbourne, FL