Sha256: 30fba96a920cd58bb934789dcee753994496d8898161fe0fe3b0b118df4768b3

Contents?: true

Size: 598 Bytes

Versions: 21

Compression:

Stored size: 598 Bytes

Contents

desc "Configure hobo"
task :config do
  config = Hobo.user_config

  # Not required at present
  # config.full_name = Hobo.ui.ask("Full name", :default => config.full_name).to_s
  # config.email = Hobo.ui.ask("Email", :default => config.email).to_s

  config[:aws] ||= {}
  config.aws.access_key_id = Hobo.ui.ask("AWS access key ID", :default => config.aws.access_key_id).to_s
  config.aws.secret_access_key = Hobo.ui.ask("AWS secret access key", :default => config.aws.secret_access_key).to_s

  Hobo::Config::File.save(Hobo.user_config_file, config)
  File.chmod(0600, Hobo.user_config_file)
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hobo-inviqa-0.0.15 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.14 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.13 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.11 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.10 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.10.pre.rc11 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.10.pre.rc10 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.10.pre.rc9 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.10.pre.rc8 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.10.pre.rc7 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.10.pre.rc6 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.10.pre.rc4 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.10.pre.rc2 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.9 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.9.pre.rc2 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.9.pre.rc1 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.9.pre.alpha lib/hobo/tasks/config.rb
hobo-inviqa-0.0.8 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.7.pre.rc3 lib/hobo/tasks/config.rb
hobo-inviqa-0.0.7.pre.rc2 lib/hobo/tasks/config.rb