Sha256: f4a2c13180b78ab7c566a620367ed9e35900abba7a29191c54d312eb85ea1c9e

Contents?: true

Size: 211 Bytes

Versions: 3

Compression:

Stored size: 211 Bytes

Contents

def get_token
  print('Token: ')
  STDIN.gets.chop
end

namespace :fronty do
  task :login => :environment do
    token = get_token()

    File.open('.token', 'w+') do |f|
      f.write(token)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fronty-gem-0.1.2 lib/tasks/fronty.rake
fronty-gem-0.1.1 lib/tasks/fronty.rake
fronty-gem-0.1.0 lib/tasks/fronty.rake