草庐IT

chef_gem

全部标签

ruby - 如何打印或调试 Chef 属性

我创建了一个带有属性的ChefRecipe,然后尝试将代码引导到节点并传递额外的属性和/或覆盖默认值。是否可以打印属性树以查看加载了哪些属性,哪些属性被覆盖了? 最佳答案 要从融合的Chef中获取整个属性树,而不是通过ChefServer中的Knife获取整个属性树,这在单独的环境中是无用的,请以有用的形式查看node.to_hash.更多信息在“Chef::Node”中。要获得pretty-print日志,您可以使用Chef的JSON库的pretty-print:output="#{Chef::JSONCompat.to_json

python - 你将如何使用 chef 安装 python 模块?

我们使用默认安装了Python的EngineYard。但是当我们启用SSL时,我们从我们的logentriesChefRecipe中收到以下错误消息。“警告:“ssl”模块不存在。使用不可靠的解决方法,无法验证主机身份。如果可能,请安装“ssl”模块或更新版本的Python(2.6)。”我正在寻找一种使用ChefRecipe安装SSL模块的方法,但我只是没有足够的经验。有人能指出我正确的方向吗?资源:LogentriesChefRecipe:https://github.com/logentries/le_chefLogentriesEY文档:https://logentries.co

python - 有没有像 Django gems - plugins 这样的东西,就像有 Ruby gems 一样

是否有Djangogems-插件之类的东西,就像有Rubygems一样,如授权管理插件等 最佳答案 要向其他答案添加更多细节,相当于Rubygem的是Python“蛋”。我不了解Ruby,所以我不确定这种等效性有多精确,但eggs基本上是Python包的安装文件——它们提供有关安装了哪些包的Python信息。egg通常是通过在包目录中运行./setup.pyinstall或使用setuptools创建的,即pipinstallNAME-OF-PACKAGE(后一种方法是通常更容易,因为它会为您下载文件并安装所有需要的依赖项)。需要注

html - 我如何标记 gem "Chartkick"y & x 轴?

Chartkick是否允许用户标记x/y轴?SampleCode: 最佳答案 是的,对于GoogleCharts,使用: 关于html-我如何标记gem"Chartkick"y&x轴?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/19580921/

html - 如何设置使用邮件 gem 发送 HTML 电子邮件?

我正在使用邮件gem发送电子邮件。这是我的代码:require'mail'require'net/smtp'Mail.defaultsdodelivery_method:smtp,{:address=>"smtp.arrakis.es",:port=>587,:domain=>'webmail.arrakis.com',:user_name=>'myname@domain.com',:password=>'pass',:authentication=>'plain',:enable_starttls_auto=>true}endMail::ContentTypeField.new("t

ios - 错误 : Error installing cocoapods: ERROR: Failed to build gem native extension

我正在尝试将cocoapods安装到运行OSX10.9.1(新Mavericks)的MacBookPro上,在键入geminstallcocoapods后,我收到以下错误:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingcocoapods:ERROR:Failedtobuildgemnativeextension."/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby"-rubygems/usr/local/rvm/gems/ruby-1.9.3-p194/g

ruby-on-rails - 找不到 gem 'sqlite3 (>= 0) ruby'

我正在学习RubyonRails,并按照RyanBigg的博客和AgileWedDevelopment一书安装RVM和Rails。这以前在我家里的电脑上工作过,但在工作中它给了我错误:depot$rails-vCouldnotfindgem'sqlite3(>=0)ruby'inthegemsavailableonthismachine.Run`bundleinstall`toinstallmissinggems.我正在尝试生成一个脚手架,但这是我得到的:depot$railsgeneratescaffoldProduct\title:stringdescription:textima

ruby-on-rails - 用于 Rails 3.1 的 SQLite3 gem

我想使用命令创建myApprailsnewmyApp但它给出了一个错误:Installingsqlite3(1.3.4)withnativeextensionsGem::Installer::ExtensionBuildError:ERROR:Failedtobuildgemnativeextension./usr/bin/ruby1.8extconf.rbcheckingforsqlite3.h...nosqlite3.hismissing.Try'portinstallsqlite3+universal'or'yuminstallsqlite3-devel'andcheckyour

ruby-on-rails - 我无法在 mac osx 10.8.2 上安装 sqlite3 gem

我的bundleinstall不工作,我得到这个错误:Installingsqlite3(1.3.6)withnativeextensionsGem::Installer::ExtensionBuildError:ERROR:Failedtobuildgemnativeextension./Users/Frank/.rvm/rubies/ruby-1.9.3-p327/bin/rubyextconf.rb--with-sqlite3-include=/Users/Frank/include--with-sqlite3-lib=/Users/Frank/lib--with-sqlite3

ruby-on-rails - 如何在 EC2 上安装 sqlite3 gem?

当我尝试:sudoyuminstallruby-develsqlite3-develAmazonEC2返回:Loadedplugins:fastestmirror,priorities,securityLoadingmirrorspeedsfromcachedhostfileSettingupInstallProcessPackageruby-devel-1.8.7.330-1.5.amzn1.i686alreadyinstalledandlatestversionNopackagesqlite3-develavailable.Nothingtodo任何帮助将不胜感激。更新:sudog