Skip to content

Commit

Permalink
clean up unused libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwb committed Apr 13, 2012
1 parent ce5f064 commit f44268a
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 499 deletions.
4 changes: 2 additions & 2 deletions files/default/tests/minitest/test/test_test.rb
Expand Up @@ -44,7 +44,7 @@ def test_owner
class TestArkInstall < MiniTest::Chef::TestCase

def test_install_dir_exists
assert File.exists?("/usr/local/maven-2.2.1")
assert File.exists?("/usr/local/maven-2.2.1")
end

def test_homedir_symlink
Expand All @@ -70,6 +70,6 @@ def test_owner
assert File.stat("/usr/local/maven-2.2.1").uid == Etc.getpwnam("foobarbaz").uid
assert File.stat("/usr/local/maven-2.2.1").gid == Etc.getpwnam("foobarbaz").gid
end

end

4 changes: 2 additions & 2 deletions libraries/provider_ark.rb
Expand Up @@ -22,10 +22,10 @@

class Chef
class Provider
class ArkBase < Chef::Provider
class Ark < Chef::Provider

def load_current_resource
@current_resource = Chef::Resource::ArkBase.new(@new_resource.name)
@current_resource = Chef::Resource::Ark.new(@new_resource.name)
end

def action_download
Expand Down
79 changes: 0 additions & 79 deletions libraries/provider_ark_cherry_pick.rb

This file was deleted.

69 changes: 0 additions & 69 deletions libraries/provider_ark_dump.rb

This file was deleted.

91 changes: 0 additions & 91 deletions libraries/provider_ark_full.rb

This file was deleted.

32 changes: 0 additions & 32 deletions libraries/provider_ark_put.rb

This file was deleted.

6 changes: 3 additions & 3 deletions libraries/resource_ark.rb
Expand Up @@ -22,11 +22,11 @@

class Chef
class Resource
class ArkBase < Chef::Resource
class Ark < Chef::Resource

def initialize(name, run_context=nil)
super
@resource_name = :ark_base
@resource_name = :ark
@owner = 'root'
@url = nil
@append_env_path = false
Expand All @@ -47,7 +47,7 @@ def initialize(name, run_context=nil)
@version = nil
@allowed_actions.push(:install, :dump, :cherry_pick, :put, :install_with_make)
@action = :install
@provider = Chef::Provider::ArkBase
@provider = Chef::Provider::Ark
end

attr_accessor :path, :release_file, :prefix_root, :home_dir
Expand Down
48 changes: 0 additions & 48 deletions libraries/resource_ark_cherry_pick.rb

This file was deleted.

0 comments on commit f44268a

Please sign in to comment.