草庐IT

chef_gem

全部标签

xml - Builder gem 中的命名空间属性

我正在尝试使用buildergem在RubyonRails应用程序中构建此示例:1033199434我可以生成一个带有命名空间的标签,如下所示:xml=Builder::XmlMarkup.newxml.ngp:contactGet...但我无法在该标记内获取属性。我认为xml.ngp:contactGet("xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance""xmlns:ngp"=>"http://www.ngpsoftware.com/ngpapi"会起作用,但不起作用。请帮忙! 最佳答案

ruby - 将 Gem 推送到托管的认证提要失败

我正在尝试将gem推送到托管的Artifactory,并且在每一步都遇到问题。我的环境是:操作系统:Windows7x64Professionalruby:ruby1.9.3p545我不得不使用cacert.pem来将人工url添加到我的源列表中,但那部分现在可以正常工作了。下一步Artifactorydocumentation是获取一个apikey并将其通过管道传输到~/.gem/credentials。当我这样做时,apikey下载成功,但gem完全崩溃。gemC:/ruby193/lib/ruby/1.9.1/psych.rb:203:in`parse':():controlch

windows - Chef 在 Windows 上找不到 encrypted_data_bag_secret

我无法在Windows上从我的加密数据包加载secret。我已将文件复制到c:\chef\encrypted_data_bag_secret,这是默认路径。我首先尝试了这个:credentials=Chef::EncryptedDataBagItem.load("system","deploy")失败并出现此错误:10.0.1.20[2014-09-12T19:51:45+00:00]FATAL:ArgumentError:Nosecretspecifiedtoload_secretandnosecretfoundatC:\chef\encrypted_data_bag_secret然

windows - 尽管存在 client.rb,但 chef-client 使用默认配置值,没有错误

在全新安装的WindowsServer2012R2上出现此问题。我得到同样的结果,如果我只运行chef-client也没关系或者如果我运行chef-client-cC:\chef\client.rb.我已验证的client.rb位于默认路径,包含:log_level:debuglog_locationSTDOUTchef_server_url'https://chef.t93.us/organizations/'validation_client_name'-validator'validation_key'C:\chef\-validator.pem'ssl_ca_file'C:\c

windows - 如何使用 Chef 在 Windows 上安装 Xamarin

我使用Chef配置我的TeamCity构建代理(WindowsServer2012虚拟机),我需要为VisualStudio/Android构建安装Xamarin。对于其他安装程序,我通常使用/h、/help、/?、-?来调用它,-h和--help直到我得到一个告诉我命令行参数的使用对话框。但是,我无法弄清楚XamarinInstaller.exe的命令行参数,当我像这样启动它时:XamarinInstaller.exe/quiet/norestart因为这些是常见的约定,它似乎只是坐在那里,什么都不做。它应该是下载的东西(当我用GUI启动它时它就是这样做的)但是当我在任务管理器中查看

ruby - 在 CygWin 上安装 ruby​​ gems 时出现 TypeError

我已经在CygWin中安装了ruby2.2.5/gem2.3.0但在使用geminstall时出现安装错误。正如某些地方所建议的那样,我也尝试了gemupdate--system但即使那样也没有帮助。如何解决这个问题?我附上了我运行的命令的输出:$geminstallnapa--backtraceERROR:Whileexecutinggem...(TypeError)noimplicitconversionofnilintoString/usr/local/share/ruby/site_ruby/rubygems/installer.rb:168:in`check_executab

windows - 为什么即使 gem 文件夹中装满了已安装的 gem, 'gem list local' 也找不到这些 gem?

当我输入时:gemenv在我的Windows系统上,它会生成以下信息:RubyGemsEnvironment:-RUBYGEMSVERSION:1.3.5-RUBYVERSION:1.8.7(2010-01-10patchlevel249)[i386-mingw32]-INSTALLATIONDIRECTORY:C:/Ruby/lib/ruby/gems/1.8-RUBYEXECUTABLE:C:/Ruby/bin/ruby.exe-EXECUTABLEDIRECTORY:C:/Ruby/bin-RUBYGEMSPLATFORMS:-ruby-x86-mingw32-GEMPATHS:

ruby-on-rails - Windows 上的 Rails Bundler 拒绝安装 hpricot(即使在手动安装 gem 时也会出现错误 : no such file to load -- hpricot)

已升级到Rails3,并在混合平台开发组中使用Bundlerforgems。我在Windows上。当我运行BundleInstall时,它会成功完成,但不会安装hpricot。hpricot行是:gem"hpricot","0.8.3",:platform=>:mswin也试过gem"hpricot",:platform=>:mswin两者都很好,但是当我尝试执行“bundleshowhpricot”时,我得到:Couldnotfindgem'hpricot'inthecurrentbundle.如果我运行Rails控制台并尝试“require'hpricot'”,我会得到:LoadE

windows - 在 Windows 上设置 Resque gem 时,resque-web 命令导致错误

我刚刚看了这个关于Resque的惊人的railscast.在我启动redis服务器并启动workers之后:rakeenvironmentresque:workQUEUE="*"我想加载resque网络界面。跑完后resque-web-p8282出现这个错误:C:\Users\makaroni4\free_frog\ffapi>resque-web-p8282[2011-06-2119:04:13+0400]RunningwithWindowsSettings[2011-06-2119:04:13+0400]Starting'resque-web'...[2011-06-2119:04

mysql - Sequel gem & MySQL (Ruby + Windows) : load mysql. so文件,不是mysql.rb

使用ruby​​gem'sequel',当我尝试Sequel.connect("mysql://localhost")时,出现以下错误:Sequel::AdapterNotFound:LoadError:require'mysql'didnotdefineMysql::CLIENT_MULTI_RESULTS!Youareprobablyusingthepurerubymysql.rbdriver,whichSequeldoesnotsupport.YouneedtoinstalltheCbasedadapter,andmakesurethatthemysql.sofileisload