Rake PackageTask, undefined method exitstatus

Hey all,

I am trying to get some rake tasks going. I have a package task that is
this:

Rake::PackageTask.new("deploy", ARGV[1]) do |p|
  p.need_zip = true
  p.name = 'rubyamf'
  p.package_files.include("lib/**/*.*")
  p.package_dir = "deploy"
end

when I run 'rake package 0.5.5' it creates the directories fine (deploy
and deploy/rubyamf-0.5.5/). But then it halts and gives me an error:

........
........
cd deploy
zip -r rubyamf-0.5.5.zip rubyamf-0.5.5
rake aborted!
undefined method `exitstatus' for nil:NilClass

Anyone have an idea what this might be from?

pretty blind guess: run with --trace and see what it will display

···

On 1/7/07, warhero <beingthexemplarylists@gmail.com> wrote:

Hey all,

I am trying to get some rake tasks going. I have a package task that is
this:

Rake::PackageTask.new("deploy", ARGV[1]) do |p|
        p.need_zip = true
        p.name = 'rubyamf'
        p.package_files.include("lib/**/*.*")
        p.package_dir = "deploy"
end

when I run 'rake package 0.5.5' it creates the directories fine (deploy
and deploy/rubyamf-0.5.5/). But then it halts and gives me an error:

........
cd deploy
zip -r rubyamf-0.5.5.zip rubyamf-0.5.5
rake aborted!
undefined method `exitstatus' for nil:NilClass

Anyone have an idea what this might be from?

warhero wrote:

Hey all,

I am trying to get some rake tasks going. I have a package task that is
this:

Rake::PackageTask.new("deploy", ARGV[1]) do |p|
  p.need_zip = true
  p.name = 'rubyamf'
  p.package_files.include("lib/**/*.*")
  p.package_dir = "deploy"
end

when I run 'rake package 0.5.5' it creates the directories fine (deploy
and deploy/rubyamf-0.5.5/). But then it halts and gives me an error:

........
........
cd deploy
zip -r rubyamf-0.5.5.zip rubyamf-0.5.5
rake aborted!
undefined method `exitstatus' for nil:NilClass

Anyone have an idea what this might be from?

It means the zip executable isn't present on your system, or in your
path. The software on my machine appears to be InfoZIP
(http://www.info-zip.org/Zip.html), although I'm not sure if it came
with Ruby or where it came from.

···

--
Posted via http://www.ruby-forum.com/.

Although it probably won't fix this problem (I too suspect that zip is missing) writing your rakefile using hoe will alleviate a lot of your efforts for development/deployment.

···

On Jan 7, 2007, at 2:30 PM, warhero wrote:

Hey all,

I am trying to get some rake tasks going. I have a package task that is
this:

warhero wrote:

........
cd deploy
zip -r rubyamf-0.5.5.zip rubyamf-0.5.5
rake aborted!
undefined method `exitstatus' for nil:NilClass

Anyone have an idea what this might be from?

Are you on Windows?

···

--
James Britt

http://www.rubyaz.org - Hacking in the Desert
http://www.jamesbritt.com - Playing with Better Toys

Cool thanks, I have to try it out. I figured it was something with the zip
files. but wasn't sure about the missing package..

thanks..

···

On 1/8/07, Mike Harris <gfunk913@gmail.com> wrote:

warhero wrote:
> Hey all,
>
> I am trying to get some rake tasks going. I have a package task that is
> this:
>
> Rake::PackageTask.new("deploy", ARGV[1]) do |p|
> p.need_zip = true
> p.name = 'rubyamf'
> p.package_files.include("lib/**/*.*")
> p.package_dir = "deploy"
> end
>
> when I run 'rake package 0.5.5' it creates the directories fine (deploy
> and deploy/rubyamf-0.5.5/). But then it halts and gives me an error:
>
> ........
> cd deploy
> zip -r rubyamf-0.5.5.zip rubyamf-0.5.5
> rake aborted!
> undefined method `exitstatus' for nil:NilClass
>
> Anyone have an idea what this might be from?

It means the zip executable isn't present on your system, or in your
path. The software on my machine appears to be InfoZIP
(http://www.info-zip.org/Zip.html), although I'm not sure if it came
with Ruby or where it came from.

--
Posted via http://www.ruby-forum.com/.

yes. windows.

I can't find that info-zip anywhere.. Doesn't seem to be on those links..

···

On 1/11/07, James Britt <james.britt@gmail.com> wrote:

warhero wrote:
> ........
> cd deploy
> zip -r rubyamf-0.5.5.zip rubyamf-0.5.5
> rake aborted!
> undefined method `exitstatus' for nil:NilClass
>
> Anyone have an idea what this might be from?

Are you on Windows?

--
James Britt

http://www.rubyaz.org - Hacking in the Desert
http://www.jamesbritt.com - Playing with Better Toys