Browse Source

cleanup syntax

Chris Mague 7 years ago
parent
commit
97027d8b29
2 changed files with 5 additions and 1 deletions
  1. 4 0
      Rakefile
  2. 1 1
      lib/neoinfra/accounts.rb

+ 4 - 0
Rakefile

@@ -1,7 +1,11 @@
 # frozen_string_literal: true
 
+task default: :full_test
+
 require 'rubocop/rake_task'
 
 RuboCop::RakeTask.new(:rubocop) do |t|
   t.options = ['--display-cop-names']
 end
+
+task full_test: [:rubocop]

+ 1 - 1
lib/neoinfra/accounts.rb

@@ -17,7 +17,7 @@ module NeoInfra
   class Accounts
     attr_reader :accounts
 
-    def initialize(cfg='config.yaml')
+    def initialize(cfg = 'config.yaml')
       @accounts = YAML.load_file(
         File.join(File.dirname(File.expand_path(__FILE__)),
                   '..', '..', cfg)