Sha256: e7cc1ad4127a81d2cd362173d7dfec9c5728e7aa8efde0aa7d2a6068ee9d3eff

Contents?: true

Size: 280 Bytes

Versions: 5

Compression:

Stored size: 280 Bytes

Contents

module Meroku
  module CLI
    module User
      def self.load_secrets(obj)
      if !File.exist? "#{Dir.home}/.meroku/.token"
        puts "error: Have you logged in yet?"
        return nil
      end
        obj.token = `cat ~/.meroku/.token`.chomp
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
meroku-2.0.8 lib/meroku/cli/user.rb
meroku-2.0.7 lib/meroku/cli/user.rb
meroku-2.0.6 lib/meroku/cli/user.rb
meroku-2.0.5 lib/meroku/cli/user.rb
meroku-2.0.4 lib/meroku/cli/user.rb