Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions metadata.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true
# frozen_string_literal: true ~FC066 ~FC069 ~FC078
Comment thread
govindgupta marked this conversation as resolved.
Outdated
name 'proget'
maintainer 'Morley, Jonathan'
maintainer_email 'JMorley@cvent.com'
Expand All @@ -7,7 +7,7 @@
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
source_url 'https://github.com/cvent/proget-cookbook'
issues_url 'https://github.com/cvent/proget-cookbook/issues'
version '0.2.0'
version '0.2.1'

supports 'windows'

Expand Down
6 changes: 3 additions & 3 deletions resources/server.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

property :name, String, name_property: true
property :name, String, name_property: true # ~FC108
Comment thread
govindgupta marked this conversation as resolved.
Outdated
property :version, String, required: true
property :package_version, String, default: lazy { strip_patch_version(version) }
property :checksum, String
Expand Down Expand Up @@ -58,9 +58,9 @@
package_cache_dir = Chef::FileCache.create_cache_path('package')
package 'ProGet' do # ~FC009
action :install
source proget_url(install_sql_express, package_version)
source proget_url(new_resource.install_sql_express, new_resource.package_version)
checksum new_resource.checksum if new_resource.checksum
remote_file_attributes name: ::File.join(package_cache_dir, "proget-#{package_version}.exe")
remote_file_attributes name: ::File.join(package_cache_dir, "proget-#{new_resource.package_version}.exe")
version new_resource.version
installer_type :custom
options args.join(' ')
Expand Down