class Serverkit::Resources::RbenvRbenv

Public Instance Methods

apply() click to toggle source

@note Override

# File lib/serverkit/resources/rbenv_rbenv.rb, line 9
def apply
  build_resource.run_apply
end
check() click to toggle source

@note Override

# File lib/serverkit/resources/rbenv_rbenv.rb, line 14
def check
  build_resource.check
end

Private Instance Methods

build_resource() click to toggle source
# File lib/serverkit/resources/rbenv_rbenv.rb, line 20
def build_resource
  resource = Serverkit::Resources::Git.new(
    @recipe,
    "path" => "/home/#{user}/.rbenv",
    "repository" => "https://github.com/sstephenson/rbenv.git",
    "state" => "updated",
    "user" => user,
  )
  resource.backend = backend
  resource
end