Module: Jammer

Defined in:
lib/jammer.rb,
lib/jammer/user.rb,
lib/jammer/version.rb,
lib/jammer/package_info.rb,
lib/jammer/package_creator.rb,
lib/jammer/package_manager.rb,
lib/jammer/package_installer.rb,
lib/jammer/package_publisher.rb

Defined Under Namespace

Classes: PackageCreator, PackageInfo, PackageInstaller, PackageManager, PackagePublisher, User

Constant Summary collapse

VERSION =
'0.8.0'

Class Method Summary collapse

Class Method Details

.bump_package(version_level) ⇒ Object



14
15
16
# File 'lib/jammer.rb', line 14

def bump_package(version_level)
  puts "TODO: implement version bumping"
end

.create_package(package_info) ⇒ Object



10
11
12
# File 'lib/jammer.rb', line 10

def create_package(package_info)
  creator.create_package package_info
end

.creator(default = Jammer::PackageCreator.new) ⇒ Object



26
27
28
# File 'lib/jammer.rb', line 26

def creator(default = Jammer::PackageCreator.new)
  @creator ||= default
end

.install_packagesObject



22
23
24
# File 'lib/jammer.rb', line 22

def install_packages
  installer.install_packages
end

.installer(default = Jammer::PackageInstaller.new) ⇒ Object



30
31
32
# File 'lib/jammer.rb', line 30

def installer(default = Jammer::PackageInstaller.new)
  @installer ||= default
end

.manager(default = Jammer::PackageManager.new) ⇒ Object



34
35
36
# File 'lib/jammer.rb', line 34

def manager(default = Jammer::PackageManager.new)
  @manager ||= default
end

.publish_package(package_location, package_info, repository = nil) ⇒ Object



18
19
20
# File 'lib/jammer.rb', line 18

def publish_package(package_location, package_info, repository = nil)
  publisher.publish_package package_location, package_info, repository
end

.publisher(default = Jammer::PackagePublisher.new) ⇒ Object



38
39
40
# File 'lib/jammer.rb', line 38

def publisher(default = Jammer::PackagePublisher.new)
  @publisher ||= default
end