Class: Serverkit::Resources::GoPackage

Inherits:
Base
  • Object
show all
Defined in:
lib/serverkit/resources/go_package.rb

Instance Method Summary collapse

Instance Method Details

#applyObject

Note:

Override



9
10
11
# File 'lib/serverkit/resources/go_package.rb', line 9

def apply
  run_command("go get -u #{path}")
end

#checkObject

Note:

Override



14
15
16
17
18
19
# File 'lib/serverkit/resources/go_package.rb', line 14

def check
  go_package_path = "#{ENV['GOPATH']}/src/#{path}"
  check_command(
    backend.command.get(:check_file_is_directory, go_package_path)
  )
end