Class: Bixby::Provision::Meteor
- Defined in:
- lib/bixby/provision/dsl/meteor.rb
Constant Summary collapse
- EXPORTS =
[]
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #install(opts = {}) ⇒ Object
-
#mrt(path, opts = {}) ⇒ Object
Run meteorite install.
Methods inherited from Base
#get_gid, #get_group, #get_uid, #get_user, #initialize, #tap
Methods included from Util::File
#chmod, #chown, #sha256sum, #which
Constructor Details
This class inherits a constructor from Bixby::Provision::Base
Instance Method Details
#install(opts = {}) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/bixby/provision/dsl/meteor.rb', line 9 def install(opts={}) if File.exists? "/usr/local/bin/meteor" then logger.info "meteor already installed; skipping" return end logger.info "[meteor] installing meteor" logged_systemu("curl -sL https://install.meteor.com | sh") end |
#mrt(path, opts = {}) ⇒ Object
Run meteorite install
20 21 22 23 |
# File 'lib/bixby/provision/dsl/meteor.rb', line 20 def mrt(path, opts={}) logger.info "[meteor] mrt install" logged_systemu("mrt install", :cwd => File.(path)) end |