Sha256: 0d664ad735bb84a9a920f57dab13d912a367539d8b7ca0d6755559fa6ce90341

Contents?: true

Size: 441 Bytes

Versions: 7

Compression:

Stored size: 441 Bytes

Contents

#!/usr/bin/env ruby

require 'yaml'


if File.exist? "config.yml"
  config = YAML.load_file("config.yml")
  puts config.inspect
else
  config = Hash.new
  puts "pleas enter your email"
  config[:email] = STDIN.gets.chomp
  puts "please enter your name"
  config[:name] = STDIN.gets.chomp
  puts "pleas enter your host-name (leave blank if you don't have one)"
  config[:host] = STDIN.gets.chomp
  File.write "config.yml",config.to_yaml
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dockersitter-0.8.1 test.rb
dockersitter-0.8.0 test.rb
dockersitter-0.7.0 test.rb
dockersitter-0.6.0 test.rb
dockersitter-0.5.0 test.rb
dockersitter-0.4.0 test.rb
dockersitter-0.3.0 test.rb