Skip to content

Commit a1e9848

Browse files
Merge pull request #78 from schubergphilis/refactor
Refactor style issues
2 parents 80293cf + 58e4f94 commit a1e9848

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

lib/vagrant-cloudstack/action/connect_cloudstack.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
require "fog"
2-
require "log4r"
1+
require 'fog'
2+
require 'log4r'
33

44
module VagrantPlugins
55
module Cloudstack
@@ -10,7 +10,7 @@ module Action
1010
class ConnectCloudstack
1111
def initialize(app, env)
1212
@app = app
13-
@logger = Log4r::Logger.new("vagrant_cloudstack::action::connect_cloudstack")
13+
@logger = Log4r::Logger.new('vagrant_cloudstack::action::connect_cloudstack')
1414
end
1515

1616
def call(env)
@@ -36,7 +36,7 @@ def call(env)
3636
fog_config[:cloudstack_port] = domain_config.port if domain_config.port
3737
fog_config[:cloudstack_scheme] = domain_config.scheme if domain_config.scheme
3838

39-
@logger.info("Connecting to Cloudstack...")
39+
@logger.info('Connecting to Cloudstack...')
4040
env[:cloudstack_compute] = Fog::Compute.new(fog_config)
4141

4242
@app.call(env)

lib/vagrant-cloudstack/action/read_ssh_info.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "log4r"
1+
require 'log4r'
22

33
module VagrantPlugins
44
module Cloudstack
@@ -63,8 +63,7 @@ def read_ssh_info(cloudstack, machine)
6363
:password => nil
6464
}) unless domain_config.ssh_key.nil?
6565
ssh_info = ssh_info.merge({ :username => domain_config.ssh_user }) unless domain_config.ssh_user.nil?
66-
67-
return ssh_info
66+
ssh_info
6867
end
6968
end
7069
end

lib/vagrant-cloudstack/action/read_state.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def read_state(cloudstack, machine)
3030
end
3131

3232
# Return the state
33-
return server.state.downcase.to_sym
33+
server.state.downcase.to_sym
3434
end
3535
end
3636
end

0 commit comments

Comments
 (0)