0

我想修改一个刀架空间 gem,以便能够使用 winrm 而不是 ssh 引导,但我无法构建 gem。我已经从https://github.com/opscode/knife-rackspace克隆了刀架空间代码

但是当我尝试运行 rake 时,出现以下错误

$ rake --trace
rake aborted!
Don't know how to build task 'default'
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task_manager.rb:49:in `[]'
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:142:in `invoke_task'
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rake-10.0.4/bin/rake:9:in `<top (required)>'
c:/opscode/chef/embedded/bin/rake:23:in `load'
c:/opscode/chef/embedded/bin/rake:23:in `<main>'

我是 Ruby 的新手,所以我不知道它是什么意思或如何解决它....你知道吗?

4

1 回答 1

1

这意味着您没有尝试运行默认的 Rake 任务。尽管我认为您不想实际运行它。如果您对库进行了一些更改并想要构建 gem,请尝试以下操作:

$ gem build knife-rackspace.gemspec

这应该为您构建一个knife-rackspace-0.6.3.gem 文件。

于 2013-04-14T11:56:30.707 回答