Top Level Namespace
Defined Under Namespace
Modules: TestPivotalWorkstation
Constant Summary collapse
- GITX_PATH =
"/Applications/GitX.app"
- GITX_LINK =
"/usr/local/bin/gitx"
- GITX_LINK_SRC =
"/Applications/GitX.app/Contents/Resources/gitx"
- DEFAULT_PIVOTAL_MYSQL_PASSWORD =
"password"
- WS_USER =
ENV['SUDO_USER'].strip
- WS_HOME =
ENV['HOME']
Instance Method Summary collapse
- #initialize(name, run_context = nil) ⇒ Object
-
#load_current_resource ⇒ Object
- Cookbook Name
- dmg Provider
-
package.
Instance Method Details
#initialize(name, run_context = nil) ⇒ Object
31 32 33 34 |
# File 'lib/test_pivotal_workstation/resources/package.rb', line 31 def initialize(name, run_context=nil) super @action = :install end |
#load_current_resource ⇒ Object
- Cookbook Name
-
dmg
- Provider
-
package
Copyright 2011, Joshua Timberman
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
20 21 22 23 24 25 26 |
# File 'lib/test_pivotal_workstation/providers/package.rb', line 20 def load_current_resource @dmgpkg = Chef::Resource::PivotalWorkstationPackage.new(new_resource.name) @dmgpkg.app(new_resource.app) Chef::Log.debug("Checking for application #{new_resource.app}") installed = (new_resource.type == "app") ? (::File.directory?("#{new_resource.destination}/#{new_resource.app}.app")) : system("pkgutil --pkgs=#{new_resource.package_id}") @dmgpkg.installed(installed) end |