Bump version to 0.1.3. Fix rubocop issues
This commit is contained in:
Родитель
c154b6211b
Коммит
b5bd0ff110
|
@ -12,9 +12,9 @@ provisioner:
|
|||
add_formatter: doc
|
||||
|
||||
platforms:
|
||||
- name: debian7
|
||||
- name: debian8
|
||||
driver_config:
|
||||
box: debian7
|
||||
box: debian/jessie64
|
||||
provisioner:
|
||||
require_chef_omnibus: 11.18.6
|
||||
|
||||
|
@ -59,7 +59,7 @@ suites:
|
|||
run_list:
|
||||
- recipe[xplat-basic::default]
|
||||
includes:
|
||||
- debian7
|
||||
- debian8
|
||||
- ubuntu1404
|
||||
- centos6
|
||||
- osx109-desktop
|
||||
|
|
2
Rakefile
2
Rakefile
|
@ -25,6 +25,6 @@ namespace :kitchen do
|
|||
end
|
||||
end
|
||||
|
||||
task :default => ['style', 'kitchen:linux']
|
||||
task :default => ['style', 'kitchen:linux']
|
||||
|
||||
task :travis => ['style']
|
||||
|
|
|
@ -5,7 +5,7 @@ module VSTS
|
|||
module Agent
|
||||
# Helper methods for VSTS Build Agent installation
|
||||
module Helpers
|
||||
VARS_TO_SAVE = %w(vsts_url vsts_pool vsts_user install_dir sv_name sv_session user group user_home)
|
||||
VARS_TO_SAVE = %w(vsts_url vsts_pool vsts_user install_dir sv_name sv_session user group user_home).freeze
|
||||
|
||||
def agent_installed?(resource, node)
|
||||
agent_attribute?(resource.agent_name, node) &&
|
||||
|
@ -53,11 +53,11 @@ module VSTS
|
|||
end
|
||||
|
||||
def plist_path(resource)
|
||||
if resource.sv_session
|
||||
path = "/Library/LaunchAgents/#{resource.sv_name}.plist"
|
||||
else
|
||||
path = "/Library/LaunchDaemons/#{resource.sv_name}.plist"
|
||||
end
|
||||
path = if resource.sv_session
|
||||
"/Library/LaunchAgents/#{resource.sv_name}.plist"
|
||||
else
|
||||
"/Library/LaunchDaemons/#{resource.sv_name}.plist"
|
||||
end
|
||||
|
||||
path = "#{resource.user_home}#{path}" if resource.user_home
|
||||
path
|
||||
|
|
|
@ -6,7 +6,7 @@ description 'Installs/Configures visualstudio team services build agents'
|
|||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
||||
source_url 'https://github.com/Microsoft/vsts-build-agent-cookbook' if respond_to?(:source_url)
|
||||
issues_url 'https://github.com/Microsoft/vsts-build-agent-cookbook/issues' if respond_to?(:issues_url)
|
||||
version '0.1.2'
|
||||
version '0.1.3'
|
||||
|
||||
%w( ubuntu debian mac_os_x mac_os_x_server windows ).each do |os|
|
||||
supports os
|
||||
|
|
|
@ -2,11 +2,11 @@ require 'serverspec'
|
|||
|
||||
set :backend, :exec
|
||||
|
||||
if os[:family] == 'darwin'
|
||||
home_dir = '/Users/vagrant'
|
||||
else
|
||||
home_dir = '/home/vagrant'
|
||||
end
|
||||
home_dir = if os[:family] == 'darwin'
|
||||
'/Users/vagrant'
|
||||
else
|
||||
'/home/vagrant'
|
||||
end
|
||||
|
||||
describe file("#{home_dir}/agents/agent_01/.agent") do
|
||||
it { should_not exist }
|
||||
|
|
Загрузка…
Ссылка в новой задаче