lumberg 2.0.0.pre4 → 2.0.0.pre5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +49 -49
  3. data/lib/lumberg/cpanel.rb +2 -0
  4. data/lib/lumberg/cpanel/addon_domain.rb +3 -3
  5. data/lib/lumberg/cpanel/backups.rb +1 -1
  6. data/lib/lumberg/cpanel/base.rb +5 -5
  7. data/lib/lumberg/cpanel/box_trapper.rb +1 -1
  8. data/lib/lumberg/cpanel/branding.rb +5 -5
  9. data/lib/lumberg/cpanel/contact.rb +2 -2
  10. data/lib/lumberg/cpanel/cron.rb +6 -6
  11. data/lib/lumberg/cpanel/dns_lookup.rb +1 -1
  12. data/lib/lumberg/cpanel/domain_keys.rb +4 -4
  13. data/lib/lumberg/cpanel/domain_lookup.rb +4 -4
  14. data/lib/lumberg/cpanel/email.rb +40 -40
  15. data/lib/lumberg/cpanel/file_manager.rb +5 -5
  16. data/lib/lumberg/cpanel/ftp.rb +101 -0
  17. data/lib/lumberg/cpanel/gpg.rb +4 -4
  18. data/lib/lumberg/cpanel/locale.rb +1 -1
  19. data/lib/lumberg/cpanel/mime.rb +2 -2
  20. data/lib/lumberg/cpanel/mysql.rb +6 -6
  21. data/lib/lumberg/cpanel/net.rb +2 -2
  22. data/lib/lumberg/cpanel/park.rb +4 -4
  23. data/lib/lumberg/cpanel/password.rb +2 -2
  24. data/lib/lumberg/cpanel/password_strength.rb +63 -0
  25. data/lib/lumberg/cpanel/random_data.rb +1 -1
  26. data/lib/lumberg/cpanel/redirect.rb +2 -2
  27. data/lib/lumberg/cpanel/ssl.rb +23 -23
  28. data/lib/lumberg/cpanel/sub_domain.rb +4 -4
  29. data/lib/lumberg/cpanel/support.rb +2 -2
  30. data/lib/lumberg/cpanel/zone_edit.rb +8 -8
  31. data/lib/lumberg/format_whm.rb +7 -7
  32. data/lib/lumberg/version.rb +1 -1
  33. data/lib/lumberg/whm/account.rb +5 -5
  34. data/lib/lumberg/whm/cert.rb +1 -1
  35. data/lib/lumberg/whm/dns.rb +6 -6
  36. data/lib/lumberg/whm/reseller.rb +5 -5
  37. data/lib/lumberg/whm/server.rb +26 -26
  38. data/spec/cpanel/addon_domain_spec.rb +13 -13
  39. data/spec/cpanel/backups_spec.rb +3 -3
  40. data/spec/cpanel/base_spec.rb +19 -19
  41. data/spec/cpanel/box_trapper_spec.rb +3 -3
  42. data/spec/cpanel/branding_spec.rb +3 -3
  43. data/spec/cpanel/contact_spec.rb +6 -6
  44. data/spec/cpanel/cron_spec.rb +51 -51
  45. data/spec/cpanel/dns_lookup_spec.rb +4 -4
  46. data/spec/cpanel/domain_keys_spec.rb +3 -3
  47. data/spec/cpanel/domain_lookup_spec.rb +5 -5
  48. data/spec/cpanel/email_spec.rb +116 -116
  49. data/spec/cpanel/file_manager_spec.rb +11 -11
  50. data/spec/cpanel/ftp_spec.rb +71 -0
  51. data/spec/cpanel/gpg_spec.rb +3 -3
  52. data/spec/cpanel/locale_spec.rb +3 -3
  53. data/spec/cpanel/net_spec.rb +4 -4
  54. data/spec/cpanel/park_spec.rb +7 -7
  55. data/spec/cpanel/password_spec.rb +5 -5
  56. data/spec/cpanel/password_strength_spec.rb +50 -0
  57. data/spec/cpanel/random_data_spec.rb +4 -4
  58. data/spec/cpanel/ssl_spec.rb +27 -27
  59. data/spec/cpanel/sub_domain_spec.rb +8 -8
  60. data/spec/cpanel/support_spec.rb +4 -4
  61. data/spec/spec_helper.rb +1 -1
  62. data/spec/vcr_cassettes/cpanel/ftp/addftp.yml +43 -0
  63. data/spec/vcr_cassettes/cpanel/ftp/delftp.yml +43 -0
  64. data/spec/vcr_cassettes/cpanel/ftp/listftp.yml +43 -0
  65. data/spec/vcr_cassettes/cpanel/ftp/listftpsessions.yml +43 -0
  66. data/spec/vcr_cassettes/cpanel/ftp/listftpwithdisk.yml +95 -0
  67. data/spec/vcr_cassettes/cpanel/ftp/passwd.yml +43 -0
  68. data/spec/vcr_cassettes/cpanel/ftp/setquota.yml +43 -0
  69. data/spec/vcr_cassettes/cpanel/password_strength/all_required_strengths.yml +43 -0
  70. data/spec/vcr_cassettes/cpanel/password_strength/required_strength.yml +43 -0
  71. data/spec/vcr_cassettes/cpanel/password_strength/strength.yml +83 -0
  72. data/spec/whm/account_spec.rb +69 -69
  73. data/spec/whm/base_spec.rb +3 -3
  74. data/spec/whm/cert_spec.rb +24 -24
  75. data/spec/whm/dns_spec.rb +36 -36
  76. data/spec/whm/reseller_spec.rb +36 -36
  77. data/spec/whm/server_spec.rb +22 -22
  78. data/spec/whm/whm_spec.rb +8 -8
  79. metadata +29 -2
@@ -2,12 +2,12 @@ require "spec_helper"
2
2
 
3
3
  module Lumberg
4
4
  describe Cpanel::FileManager do
5
- let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
5
+ let(:server) { Whm::Server.new(host: @whm_host, hash: @whm_hash) }
6
6
  let(:api_username) { "lumberg" }
7
7
  let(:file_manager) do
8
8
  described_class.new(
9
- :server => server,
10
- :api_username => api_username
9
+ server: server,
10
+ api_username: api_username
11
11
  )
12
12
  end
13
13
 
@@ -27,7 +27,7 @@ module Lumberg
27
27
  use_vcr_cassette "cpanel/file_manager/show"
28
28
 
29
29
  it "gets information about files and directories" do
30
- result = file_manager.show({ :file => wanted_file })
30
+ result = file_manager.show({ file: wanted_file })
31
31
  result[:params][:data][0][:file].should === wanted_file
32
32
  end
33
33
  end
@@ -36,7 +36,7 @@ module Lumberg
36
36
  use_vcr_cassette "cpanel/file_manager/stat"
37
37
 
38
38
  it "gets system information about files" do
39
- result = file_manager.stat({ :file => wanted_file })
39
+ result = file_manager.stat({ file: wanted_file })
40
40
  result[:params][:data][0][:user].should === api_username
41
41
  end
42
42
  end
@@ -55,17 +55,17 @@ module Lumberg
55
55
 
56
56
  it "copies a non-existent file" do
57
57
  file_manager.operate({
58
- :name => "copy",
59
- :source_files => ".shouldneverexist",
60
- :destination_files => ".someotherfile"
58
+ name: "copy",
59
+ source_files: ".shouldneverexist",
60
+ destination_files: ".someotherfile"
61
61
  })[:params][:data][0][:result].should == 0
62
62
  end
63
63
 
64
64
  it "copies a file" do
65
65
  file_manager.operate({
66
- :name => "copy",
67
- :source_files => ".lastlogin",
68
- :destination_files => "sample-last-login.txt"
66
+ name: "copy",
67
+ source_files: ".lastlogin",
68
+ destination_files: "sample-last-login.txt"
69
69
  })[:params][:data][0][:result].should == 1
70
70
  end
71
71
  end
@@ -0,0 +1,71 @@
1
+ require "spec_helper"
2
+
3
+ module Lumberg
4
+ describe Cpanel::Ftp do
5
+ let(:server) { Whm::Server.new(host: @whm_host, hash: @whm_hash) }
6
+ let(:api_username) { "lumberg" }
7
+
8
+ let(:ftp) do
9
+ described_class.new(
10
+ server: server,
11
+ api_username: api_username
12
+ )
13
+ end
14
+
15
+ describe "#list_ftp" do
16
+ use_vcr_cassette("cpanel/ftp/listftp")
17
+
18
+ it "lists ftp accounts associated to the account" do
19
+ ftp.list_ftp[:params][:data][0][:user].should eq("hello")
20
+ end
21
+ end
22
+
23
+ describe "#list_ftp_sessions" do
24
+ use_vcr_cassette("cpanel/ftp/listftpsessions")
25
+
26
+ it "lists ftp sessions associated to the account" do
27
+ ftp.list_ftp_sessions[:params][:data][0][:status].should eq("IDLE")
28
+ end
29
+ end
30
+
31
+ describe "#list_ftp_with_disk" do
32
+ use_vcr_cassette("cpanel/ftp/listftpwithdisk")
33
+
34
+ it "lists ftp accounts with disk information" do
35
+ ftp.list_ftp_with_disk[:params][:data][0][:_diskused].should eq("0")
36
+ end
37
+ end
38
+
39
+ describe "#add_ftp" do
40
+ use_vcr_cassette("cpanel/ftp/addftp")
41
+
42
+ it "creates the account" do
43
+ ftp.add_ftp(user: 'bob', pass: 'boo')[:params][:data][0][:reason].should eq("OK")
44
+ end
45
+ end
46
+
47
+ describe "#passwd" do
48
+ use_vcr_cassette("cpanel/ftp/passwd")
49
+
50
+ it "changes the password of the account" do
51
+ ftp.passwd(user: 'bob', pass: 'boo')[:params][:data][0][:reason].should eq("OK")
52
+ end
53
+ end
54
+
55
+ describe "#setquota" do
56
+ use_vcr_cassette("cpanel/ftp/setquota")
57
+
58
+ it "sets a quota for the account" do
59
+ ftp.set_quota(user: 'bob', quota: '100')[:params][:data][0][:reason].should eq("OK")
60
+ end
61
+ end
62
+
63
+ describe "#del_ftp" do
64
+ use_vcr_cassette("cpanel/ftp/delftp")
65
+
66
+ it "removes the account" do
67
+ ftp.del_ftp(user: 'bob', destroy: '1')[:params][:data][0][:reason].should eq("OK")
68
+ end
69
+ end
70
+ end
71
+ end
@@ -2,12 +2,12 @@ require "spec_helper"
2
2
 
3
3
  module Lumberg
4
4
  describe Cpanel::Gpg do
5
- let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
5
+ let(:server) { Whm::Server.new(host: @whm_host, hash: @whm_hash) }
6
6
  let(:api_username) { "lumberg" }
7
7
  let(:gpg) do
8
8
  described_class.new(
9
- :server => server,
10
- :api_username => api_username
9
+ server: server,
10
+ api_username: api_username
11
11
  )
12
12
  end
13
13
 
@@ -2,12 +2,12 @@ require "spec_helper"
2
2
 
3
3
  module Lumberg
4
4
  describe Cpanel::Locale do
5
- let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
5
+ let(:server) { Whm::Server.new(host: @whm_host, hash: @whm_hash) }
6
6
  let(:api_username) { "lumberg" }
7
7
  let(:locale) do
8
8
  described_class.new(
9
- :server => server,
10
- :api_username => api_username
9
+ server: server,
10
+ api_username: api_username
11
11
  )
12
12
  end
13
13
 
@@ -2,12 +2,12 @@ require "spec_helper"
2
2
 
3
3
  module Lumberg
4
4
  describe Cpanel::Net do
5
- let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
5
+ let(:server) { Whm::Server.new(host: @whm_host, hash: @whm_hash) }
6
6
  let(:api_username) { "lumberg" }
7
7
  let(:net) do
8
8
  described_class.new(
9
- :server => server,
10
- :api_username => api_username
9
+ server: server,
10
+ api_username: api_username
11
11
  )
12
12
  end
13
13
 
@@ -22,7 +22,7 @@ module Lumberg
22
22
  describe "#query_hostname" do
23
23
  use_vcr_cassette "cpanel/net/query_hostname"
24
24
 
25
- subject { net.query_hostname({ :host => 'google.com' })[:params][:data] }
25
+ subject { net.query_hostname({ host: 'google.com' })[:params][:data] }
26
26
 
27
27
  it { should be_an(Array) }
28
28
  end
@@ -3,13 +3,13 @@ require "spec_helper"
3
3
  module Lumberg
4
4
  describe Cpanel::Park do
5
5
  before(:each) do
6
- @login = { :host => @whm_host, :hash => @whm_hash }
6
+ @login = { host: @whm_host, hash: @whm_hash }
7
7
  @server = Whm::Server.new(@login.dup)
8
8
 
9
9
  @api_username = "lumberg"
10
10
  @park = Cpanel::Park.new(
11
- :server => @server.dup,
12
- :api_username => @api_username
11
+ server: @server.dup,
12
+ api_username: @api_username
13
13
  )
14
14
  end
15
15
 
@@ -18,9 +18,9 @@ module Lumberg
18
18
 
19
19
  it "creates a new parked domain" do
20
20
  # Remove first
21
- @park.remove(:domain => "test-park.com")
21
+ @park.remove(domain: "test-park.com")
22
22
 
23
- result = @park.add(:domain => "test-park.com")
23
+ result = @park.add(domain: "test-park.com")
24
24
  result[:params][:data].first[:result].should == 1
25
25
  end
26
26
  end
@@ -30,9 +30,9 @@ module Lumberg
30
30
 
31
31
  it "removes a parked domain" do
32
32
  # Add first
33
- @park.add(:domain => "test-park.com")
33
+ @park.add(domain: "test-park.com")
34
34
 
35
- result = @park.remove(:domain => "test-park.com")
35
+ result = @park.remove(domain: "test-park.com")
36
36
  result[:params][:data].first[:result].should == 1
37
37
  end
38
38
  end
@@ -2,12 +2,12 @@ require "spec_helper"
2
2
 
3
3
  module Lumberg
4
4
  describe Cpanel::Password do
5
- let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
5
+ let(:server) { Whm::Server.new(host: @whm_host, hash: @whm_hash) }
6
6
  let(:api_username) { "lumberg" }
7
7
  let(:password) do
8
8
  described_class.new(
9
- :server => server,
10
- :api_username => api_username
9
+ server: server,
10
+ api_username: api_username
11
11
  )
12
12
  end
13
13
 
@@ -17,7 +17,7 @@ module Lumberg
17
17
  use_vcr_cassette "cpanel/password/modify"
18
18
 
19
19
  it "sets a new password for account" do
20
- result = password.modify({ :old => '12345', :new => random_password })
20
+ result = password.modify({ old: '12345', new: random_password })
21
21
  result[:params][:data][0].should be_a(Hash)
22
22
  end
23
23
  end
@@ -26,7 +26,7 @@ module Lumberg
26
26
  use_vcr_cassette "cpanel/password/digest_authentication"
27
27
 
28
28
  it "enables digest authentication for account" do
29
- result = password.digest_authentication({ :password => random_password, :enable => true })
29
+ result = password.digest_authentication({ password: random_password, enable: true })
30
30
  result[:params][:data][0].should be_a(Hash)
31
31
  end
32
32
  end
@@ -0,0 +1,50 @@
1
+ require "spec_helper"
2
+
3
+ module Lumberg
4
+ describe Cpanel::PasswordStrength do
5
+ let(:server) { Whm::Server.new(host: @whm_host, hash: @whm_hash) }
6
+ let(:api_username) { "lumberg" }
7
+ let(:password_strength) do
8
+ described_class.new(
9
+ server: server,
10
+ api_username: api_username
11
+ )
12
+ end
13
+
14
+ let(:weak_password) { "weakness" }
15
+ let(:strong_password) { "0zUIcv-0" }
16
+
17
+ describe "#strength" do
18
+ use_vcr_cassette "cpanel/password_strength/strength"
19
+
20
+ it "tests a weak password" do
21
+ result = password_strength.strength( password: weak_password )
22
+ result[:params][:data][0][:strength].to_s.should =~ /\A\d+\z/
23
+ end
24
+
25
+ it "tests a strong password" do
26
+ result = password_strength.strength( password: strong_password )
27
+ result[:params][:data][0][:strength].to_s.should =~ /\A\d+\z/
28
+ end
29
+ end
30
+
31
+ describe "#required_strength" do
32
+ use_vcr_cassette "cpanel/password_strength/required_strength"
33
+
34
+ it "gets required password strength for a specific app" do
35
+ result = password_strength.required_strength( app: 'htaccess' )
36
+ result[:params][:data][0][:strength].should be_an(Integer)
37
+ end
38
+ end
39
+
40
+ describe "#all_required_strengths" do
41
+ use_vcr_cassette "cpanel/password_strength/all_required_strengths"
42
+
43
+ it "gets required password strengths for all apps" do
44
+ result = password_strength.all_required_strengths
45
+ result[:params][:data][0].should be_a(Hash)
46
+ end
47
+ end
48
+ end
49
+ end
50
+
@@ -2,12 +2,12 @@ require "spec_helper"
2
2
 
3
3
  module Lumberg
4
4
  describe Cpanel::RandomData do
5
- let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
5
+ let(:server) { Whm::Server.new(host: @whm_host, hash: @whm_hash) }
6
6
  let(:api_username) { "lumberg" }
7
7
  let(:random_data) do
8
8
  described_class.new(
9
- :server => server,
10
- :api_username => api_username
9
+ server: server,
10
+ api_username: api_username
11
11
  )
12
12
  end
13
13
 
@@ -15,7 +15,7 @@ module Lumberg
15
15
  use_vcr_cassette "cpanel/random_data/show"
16
16
 
17
17
  it "gets a random string" do
18
- result = random_data.show({ :length => 10 })[:params][:data]
18
+ result = random_data.show({ length: 10 })[:params][:data]
19
19
  result[0][:random].size.should === 10
20
20
  end
21
21
  end
@@ -4,7 +4,7 @@ require "spec_helper"
4
4
  module Lumberg
5
5
  describe Cpanel::Ssl do
6
6
  let(:domain) { "lumberg-test.com" }
7
- let(:server) { Whm::Server.new(:host => @whm_host, :hash => @whm_hash) }
7
+ let(:server) { Whm::Server.new(host: @whm_host, hash: @whm_hash) }
8
8
  let(:api_username) { "lumberg" }
9
9
 
10
10
  CP_CERT = File.read('./spec/sample_certs/cpanel.crt')
@@ -12,23 +12,23 @@ module Lumberg
12
12
 
13
13
  let(:cert_params) do
14
14
  {
15
- :user => :api_username,
16
- :city => "Chicago",
17
- :company => "Initech",
18
- :company_division => "TPS",
19
- :country => "US",
20
- :state => "IL",
21
- :email => "lumberg@initech.com",
22
- :host => domain,
23
- :pass => "Tru3St0ry",
24
- :key => CP_KEY
15
+ user: :api_username,
16
+ city: "Chicago",
17
+ company: "Initech",
18
+ company_division: "TPS",
19
+ country: "US",
20
+ state: "IL",
21
+ email: "lumberg@initech.com",
22
+ host: domain,
23
+ pass: "Tru3St0ry",
24
+ key: CP_KEY
25
25
  }
26
26
  end
27
27
 
28
28
  let(:ssl) do
29
29
  described_class.new(
30
- :server => server,
31
- :api_username => api_username
30
+ server: server,
31
+ api_username: api_username
32
32
  )
33
33
  end
34
34
 
@@ -36,8 +36,8 @@ module Lumberg
36
36
  use_vcr_cassette("cpanel/ssl/installssl")
37
37
 
38
38
  it "installs a certificate for a cPanel account" do
39
- ssl.installssl(:user => :api_username, :crt => CP_CERT,
40
- :domain => domain, :key => CP_KEY)[:params][:data][0][:result].should eq(1)
39
+ ssl.installssl(user: :api_username, crt: CP_CERT,
40
+ domain: domain, key: CP_KEY)[:params][:data][0][:result].should eq(1)
41
41
  end
42
42
  end
43
43
 
@@ -45,7 +45,7 @@ module Lumberg
45
45
  use_vcr_cassette("cpanel/ssl/listcsrs")
46
46
 
47
47
  it "prints the csrs for a cPanel account" do
48
- ssl.listcsrs(:user => :api_username
48
+ ssl.listcsrs(user: :api_username
49
49
  )[:params][:data][0][:host].should == domain
50
50
  end
51
51
  end
@@ -54,7 +54,7 @@ module Lumberg
54
54
  use_vcr_cassette("cpanel/ssl/showcsr")
55
55
 
56
56
  it "prints the current csr for a domain" do
57
- ssl.showcsr(:user => :api_username, :domain => domain, :textmode => 0
57
+ ssl.showcsr(user: :api_username, domain: domain, textmode: 0
58
58
  )[:params].to_s.should =~ /CERTIFICATE REQUEST/
59
59
  end
60
60
  end
@@ -63,7 +63,7 @@ module Lumberg
63
63
  use_vcr_cassette("cpanel/ssl/showkey")
64
64
 
65
65
  it "prints the current key for a domain" do
66
- ssl.showkey(:user => :api_username, :domain => domain, :textmode => 0
66
+ ssl.showkey(user: :api_username, domain: domain, textmode: 0
67
67
  )[:params].to_s.should =~ /PRIVATE KEY/
68
68
  end
69
69
  end
@@ -72,7 +72,7 @@ module Lumberg
72
72
  use_vcr_cassette("cpanel/ssl/showcrt")
73
73
 
74
74
  it "prints the current cert for a domain" do
75
- ssl.showcrt(:user => :api_username, :domain => domain, :textmode => 0
75
+ ssl.showcrt(user: :api_username, domain: domain, textmode: 0
76
76
  )[:params].to_s.should =~ /BEGIN CERTIFICATE/
77
77
  end
78
78
  end
@@ -81,7 +81,7 @@ module Lumberg
81
81
  use_vcr_cassette("cpanel/ssl/listcrts")
82
82
 
83
83
  it "lists the certs installed for an account " do
84
- ssl.listcrts(:user => :api_username)[:params][:data][0][:ssltxt].to_s.should \
84
+ ssl.listcrts(user: :api_username)[:params][:data][0][:ssltxt].to_s.should \
85
85
  =~ /Certificate/
86
86
  end
87
87
  end
@@ -90,7 +90,7 @@ module Lumberg
90
90
  use_vcr_cassette("cpanel/ssl/listkeys")
91
91
 
92
92
  it "lists the keys installed for an account" do
93
- ssl.listkeys(:user => :api_username)[:params][:data][0][:host].should == domain
93
+ ssl.listkeys(user: :api_username)[:params][:data][0][:host].should == domain
94
94
  end
95
95
  end
96
96
 
@@ -98,7 +98,7 @@ module Lumberg
98
98
  use_vcr_cassette("cpanel/ssl/fetchcabundle")
99
99
 
100
100
  it "fetches the CA bundle tied to the cert if any exist" do
101
- ssl.listsslitems(:crt => CP_CERT)[:params][:event][:result].should eq(1)
101
+ ssl.listsslitems(crt: CP_CERT)[:params][:event][:result].should eq(1)
102
102
  end
103
103
  end
104
104
 
@@ -106,7 +106,7 @@ module Lumberg
106
106
  use_vcr_cassette("cpanel/ssl/listsslitems")
107
107
 
108
108
  it "lists keys for a domain" do
109
- ssl.listsslitems(:domains => domain, :items => 'key')[:params][:data][0][:host].should \
109
+ ssl.listsslitems(domains: domain, items: 'key')[:params][:data][0][:host].should \
110
110
  == domain
111
111
  end
112
112
  end
@@ -123,7 +123,7 @@ module Lumberg
123
123
  use_vcr_cassette "cpanel/ssl/gencrt"
124
124
 
125
125
  it "generates a certificate" do
126
- ssl.gencrt(cert_params.merge(:key => CP_KEY))[:params][:data][0][:result].should eq(1)
126
+ ssl.gencrt(cert_params.merge(key: CP_KEY))[:params][:data][0][:result].should eq(1)
127
127
  end
128
128
  end
129
129
 
@@ -131,7 +131,7 @@ module Lumberg
131
131
  use_vcr_cassette("cpanel/ssl/genkey")
132
132
 
133
133
  it "generates a key" do
134
- ssl.genkey(:user => api_username, :host => domain, :keysize => 2048
134
+ ssl.genkey(user: api_username, host: domain, keysize: 2048
135
135
  )[:params][:data][0][:result].should eq(1)
136
136
  end
137
137
  end
@@ -140,8 +140,8 @@ module Lumberg
140
140
  use_vcr_cassette("cpanel/ssl/uploadcrt")
141
141
 
142
142
  it "uploads a certificate " do
143
- ssl.uploadcrt(:user => api_username, :crt => CP_CERT,
144
- :host => domain)[:params][:data][0][:result].should eq(1)
143
+ ssl.uploadcrt(user: api_username, crt: CP_CERT,
144
+ host: domain)[:params][:data][0][:result].should eq(1)
145
145
  end
146
146
  end
147
147
  end