bin/dokku in dokku-installer-cli-0.1.3 vs bin/dokku in dokku-installer-cli-0.1.4
- old
+ new
@@ -22,11 +22,11 @@
def open
exec("open http://#{app_name}.#{domain}")
end
desc "restart", "Restart the application"
- def restart(*args)
+ def restart
run_command "restart #{app_name}"
end
desc "run <cmd>", "Run a command in the environment of the application"
def walk(*args)
@@ -70,26 +70,9 @@
private
def app_name
@app_name ||= git_config_match[2]
- end
-
- def backup_filename(number)
- # Make sure the number is valid or use 1
- number = number.to_s.gsub(/\D/, "").to_i
- number = 1 if number < 1
-
- # Get the file name for the numbered backup
- puts "Getting list of backups..."
- command = "ssh -t dokku@#{domain} postgres:backups #{app_name}"
- backups = `#{command}`
- index = number - 1
- if filename = backups.split("\n").reverse[index]
- filename.strip
- else
- nil
- end
end
def domain
@domain ||= git_config_match[1]
end