Module: FPM::Fry

Defined in:
lib/fpm/fry/ui.rb,
lib/fpm/fry/tar.rb,
lib/fpm/fry/os_db.rb,
lib/fpm/fry/chroot.rb,
lib/fpm/fry/client.rb,
lib/fpm/fry/recipe.rb,
lib/fpm/fry/source.rb,
lib/fpm/fry/channel.rb,
lib/fpm/fry/command.rb,
lib/fpm/fry/detector.rb,
lib/fpm/fry/joined_io.rb,
lib/fpm/fry/with_data.rb,
lib/fpm/fry/source/dir.rb,
lib/fpm/fry/source/git.rb,
lib/fpm/fry/docker_file.rb,
lib/fpm/fry/command/cook.rb,
lib/fpm/fry/recipe/error.rb,
lib/fpm/fry/stream_parser.rb,
lib/fpm/fry/recipe/builder.rb,
lib/fpm/fry/source/package.rb,
lib/fpm/fry/source/patched.rb,
lib/fpm/fry/block_enumerator.rb,
lib/fpm/fry/build_output_parser.rb

Defined Under Namespace

Modules: Detector, Plugin, Source Classes: BlockEnumerator, BuildOutputParser, Channel, Chroot, Client, Command, DockerFile, JoinedIO, Recipe, StreamParser, Tar, UI

Constant Summary collapse

OsDb =

Structure is

<distribution> => {

codenames: {
  <codename> => <version>
},
flavour: <flavour>

}

{
  'centos' => {
    codenames: {},
    flavour: 'redhat'
  },

  'debian' => {
    codenames: {
      'lenny'   => '5',
      'squeeze' => '6',
      'wheezy'  => '7'
    },
    flavour: 'debian'
  },

  'ubuntu' => {
    codenames: {
      'precise' => '12.04',
      'trusty'  => '14.04'
    },
    flavour: 'debian'
  }
}

Class Method Summary collapse

Class Method Details

.WithData(ex, data) ⇒ Object



3
4
5
6
# File 'lib/fpm/fry/with_data.rb', line 3

def self.WithData(ex, data)
  ex.define_singleton_method(:data){ data }
  return ex
end