suitmymind-ubuntu-machine 0.3.1 → 0.3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,5 +20,29 @@ namespace :utils do
20
20
  task :free, :roles => :gateway do
21
21
  run "free -m"
22
22
  end
23
+
24
+ desc "Display passenger status information."
25
+ task :passenger_status, :roles => :gateway do
26
+ sudo "/opt/ruby-enterprise/bin/passenger-status"
27
+ end
28
+
29
+ desc "Display passenger memory usage information."
30
+ task :passenger_memory, :roles => :gateway do
31
+ sudo "/opt/ruby-enterprise/bin/passenger-memory-stats"
32
+ end
33
+
34
+ desc "Activate Phusion Passenger Enterprise Edition."
35
+ task :passenger_enterprise, :roles => :gateway do
36
+ # sudo "passenger-make-enterprisey"
37
+ sudo '/opt/ruby-enterprise/bin/passenger-make-enterprisey', :pty => true do |ch, stream, data|
38
+ if data =~ /Key\:/ || data =~ /again\:/
39
+ # prompt, and then send the response to the remote process
40
+ ch.send_data(Capistrano::CLI.password_prompt(data) + "\n")
41
+ else
42
+ # use the default handler for all other text
43
+ Capistrano::Configuration.default_io_proc.call(ch, stream, data)
44
+ end
45
+ end
46
+ end
23
47
 
24
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suitmymind-ubuntu-machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Balthazar