Sha256: 8d8f3a9929d6a9fcf210ec3369080d93de0cf2264a48bb34ffefb4ec3112b8c0

Contents?: true

Size: 792 Bytes

Versions: 74

Compression:

Stored size: 792 Bytes

Contents

require 'spec_helper'

property[:os] = nil
set :os, :family => 'amazon', :release => '2'

describe get_command(:enable_service, 'httpd') do
  it { should eq 'systemctl enable httpd' }
end

describe get_command(:disable_service, 'httpd') do
  it { should eq 'systemctl disable httpd' }
end

describe get_command(:start_service, 'httpd') do
  it { should eq 'systemctl start httpd' }
end

describe get_command(:stop_service, 'httpd') do
  it { should eq 'systemctl stop httpd' }
end

describe get_command(:restart_service, 'httpd') do
  it { should eq 'systemctl restart httpd' }
end

describe get_command(:reload_service, 'httpd') do
  it { should eq 'systemctl reload httpd' }
end

describe get_command(:enable_service, 'sshd.socket') do
  it { should eq 'systemctl enable sshd.socket' }
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
specinfra-2.91.0 spec/command/amazon2/service_spec.rb
specinfra-2.90.1 spec/command/amazon2/service_spec.rb
specinfra-2.90.0 spec/command/amazon2/service_spec.rb
specinfra-2.89.0 spec/command/amazon2/service_spec.rb
specinfra-2.88.2 spec/command/amazon2/service_spec.rb
specinfra-2.88.1 spec/command/amazon2/service_spec.rb
specinfra-2.88.0 spec/command/amazon2/service_spec.rb
specinfra-2.87.2 spec/command/amazon2/service_spec.rb
specinfra-2.87.1 spec/command/amazon2/service_spec.rb
specinfra-2.87.0 spec/command/amazon2/service_spec.rb
specinfra-2.86.0 spec/command/amazon2/service_spec.rb
specinfra-2.85.1 spec/command/amazon2/service_spec.rb
specinfra-2.85.0 spec/command/amazon2/service_spec.rb
specinfra-2.84.1 spec/command/amazon2/service_spec.rb
specinfra-2.84.0 spec/command/amazon2/service_spec.rb
specinfra-2.83.4 spec/command/amazon2/service_spec.rb
specinfra-2.83.3 spec/command/amazon2/service_spec.rb
specinfra-2.83.2 spec/command/amazon2/service_spec.rb
specinfra-2.83.1 spec/command/amazon2/service_spec.rb
specinfra-2.83.0 spec/command/amazon2/service_spec.rb