dokuen 0.0.7 → 0.0.8
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.
- data/README.md +1 -0
- data/lib/dokuen/application.rb +9 -0
- data/lib/dokuen/cli.rb +6 -0
- data/lib/dokuen/version.rb +1 -1
- metadata +1 -1
    
        data/README.md
    CHANGED
    
    
    
        data/lib/dokuen/application.rb
    CHANGED
    
    | @@ -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
         | 
    
        data/lib/dokuen/version.rb
    CHANGED