Module: Appd
- Defined in:
- lib/appd.rb,
lib/appd/app.rb,
lib/appd/cli.rb,
lib/appd/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.6.2"
Class Method Summary collapse
Class Method Details
.apps_path ⇒ Object
5 6 7 |
# File 'lib/appd.rb', line 5 def self.apps_path ENV["APPS_PATH"] end |
.exec(command, options) ⇒ Object
9 10 11 |
# File 'lib/appd.rb', line 9 def self.exec(command, ) super "source ~/.appd/#{options.server ? options.server : "current-server"} && direnv exec #{options.apps_path}/#{options.app} #{command}" end |
.select(server) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/appd.rb', line 13 def self.select(server) if File.file?("#{APPD_PATH}/#{server}") print "Selecting the #{server} Docker Server ENV file..." File.open("#{APPD_PATH}/current-server", "w") { |f| f.write("source ~/.appd/#{server}") } puts "Done!" else puts "There is no Docker Server ENV file for #{server}..." end end |