Sha256: eea426a4e7c81167bdd1d5e2acffef44fd6b4f27d05c1c44329d2ea3c89813dd

Contents?: true

Size: 589 Bytes

Versions: 14

Compression:

Stored size: 589 Bytes

Contents

desc "Configure hem"
task :config do
  config = Hem.user_config

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

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hem-1.2.4 lib/hem/tasks/config.rb
hem-1.2.3 lib/hem/tasks/config.rb
hem-1.2.2 lib/hem/tasks/config.rb
hem-1.2.1 lib/hem/tasks/config.rb
hem-1.2.0 lib/hem/tasks/config.rb
hem-1.1.2 lib/hem/tasks/config.rb
hem-1.1.1 lib/hem/tasks/config.rb
hem-1.1.0 lib/hem/tasks/config.rb
hem-1.0.1.beta6 lib/hem/tasks/config.rb
hem-1.0.1.beta5 lib/hem/tasks/config.rb
hem-1.0.1.beta4 lib/hem/tasks/config.rb
hem-1.0.1.beta3 lib/hem/tasks/config.rb
hem-1.0.1.beta2 lib/hem/tasks/config.rb
hem-1.0.1.beta1 lib/hem/tasks/config.rb