dokuen 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -86,6 +86,7 @@ $ open http://<your_host>:12345/
86
86
  * `buildpacks`
87
87
  * `install_buildpack <url>`
88
88
  * `remove_buildpack <name>`
89
+ * `run_command <command>`
89
90
 
90
91
  ## DNS Setup
91
92
 
@@ -200,6 +200,15 @@ class Dokuen::Application
200
200
  sys("sudo #{config.bin_path}/dokuen_restart_nginx")
201
201
  end
202
202
 
203
+ def run_command(args)
204
+ with_current_release do
205
+ env.each do |k,v|
206
+ ENV[k] = v
207
+ end
208
+ sys("#{config.bin_path}/foreman run #{args.join(" ")}")
209
+ end
210
+ end
211
+
203
212
  private
204
213
 
205
214
  def clone(git_dir, revision)
data/lib/dokuen/cli.rb CHANGED
@@ -112,6 +112,12 @@ class Dokuen::CLI < Thor
112
112
  system("#{@config.bin_path}/mason buildpacks")
113
113
  end
114
114
 
115
+ desc "run_command COMMAND", "Run a command in the current release"
116
+ def run_command(*args)
117
+ app = Dokuen::Application.new(options[:application], @config)
118
+ app.run_command(args)
119
+ end
120
+
115
121
  private
116
122
 
117
123
  def setup_dirs
@@ -1,3 +1,3 @@
1
1
  module Dokuen
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dokuen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: