Sha256: 314ddc2fb63621a07e4ef738742ecb24988efecda8f836d0a20cdb933bc3b9f1

Contents?: true

Size: 591 Bytes

Versions: 9

Compression:

Stored size: 591 Bytes

Contents

class LogwormHeroku
    def initialize()
      c = Logworm::Config.instance
      if !c.file_found?
        $stderr.puts "Could not find .logworm file in the current directory with proper keys"
        exit(-1)
      end
      @keys = c.keys
    end

    def run
      cmd  = "heroku config:add LW_CONSUMER_KEY=\"#{@keys[0]}\" LW_CONSUMER_SECRET=\"#{@keys[1]}\" "
      cmd << "LW_PROJECT_KEY=\"#{@keys[2]}\" LW_PROJECT_SECRET=\"#{@keys[3]}\""
      puts "Push configuration keys to Heroku"
      puts "There was an error --configuration files not pushed" if system(cmd) == false
    end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logworm_client-0.5.3 lib/logworm_utils/heroku.rb
logworm_client-0.5.2 lib/logworm_utils/heroku.rb
logworm_client-0.5.1 lib/logworm_utils/heroku.rb
logworm_client-0.5.0 lib/logworm_utils/heroku.rb
logworm_client-0.4.1 lib/logworm_utils/heroku.rb
logworm_client-0.4.0 lib/logworm_utils/heroku.rb
logworm_client-0.3.2 lib/logworm_utils/heroku.rb
logworm_client-0.3.1 lib/logworm_utils/heroku.rb
logworm_client-0.3.0 lib/logworm_utils/heroku.rb