Class: Babushka::SystemDefinitions
- Defined in:
- lib/babushka/system_definitions.rb
Class Method Summary collapse
- .all_flavours ⇒ Object
- .all_names ⇒ Object
- .all_systems ⇒ Object
- .all_tokens ⇒ Object
- .descriptions ⇒ Object
- .names ⇒ Object
Class Method Details
.all_flavours ⇒ Object
7 8 9 |
# File 'lib/babushka/system_definitions.rb', line 7 def self.all_flavours names.values.map(&:keys).flatten end |
.all_names ⇒ Object
11 12 13 |
# File 'lib/babushka/system_definitions.rb', line 11 def self.all_names names.values.map(&:values).map {|s| s.map(&:values) }.flatten end |
.all_systems ⇒ Object
3 4 5 |
# File 'lib/babushka/system_definitions.rb', line 3 def self.all_systems names.keys end |
.all_tokens ⇒ Object
15 16 17 |
# File 'lib/babushka/system_definitions.rb', line 15 def self.all_tokens all_systems + PkgHelper.all_manager_keys + all_flavours + all_names end |
.descriptions ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/babushka/system_definitions.rb', line 64 def self.descriptions { :osx => { :osx => { '10.3' => 'Panther', '10.4' => 'Tiger', '10.5' => 'Leopard', '10.6' => 'Snow Leopard', '10.7' => 'Lion' } }, :linux => { :ubuntu => { '4.10' => 'Warty Warthog', '5.04' => 'Hoary Hedgehog', '5.10' => 'Breezy Badger', '6.06' => 'Dapper Drake', '6.10' => 'Edgy Eft', '7.04' => 'Feisty Fawn', '7.10' => 'Gutsy Gibbon', '8.04' => 'Hardy Heron', '8.10' => 'Intrepid Ibex', '9.04' => 'Jaunty Jackalope', '9.10' => 'Karmic Koala', '10.04' => 'Lucid Lynx', '10.10' => 'Maverick Meerkat', '11.04' => 'Natty Narwhal', '11.10' => 'Oneiric Ocelot', '12.04' => 'Precise Pangolin' }, :debian => { '5.0.4' => 'Lenny' } }, :bsd => { :dragonfly => {}, :freebsd => {} } } end |
.names ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/babushka/system_definitions.rb', line 19 def self.names { :osx => { :osx => { '10.3' => :panther, '10.4' => :tiger, '10.5' => :leopard, '10.6' => :snow_leopard, '10.7' => :lion } }, :linux => { :ubuntu => { '4.10' => :warty, '5.04' => :hoary, '5.10' => :breezy, '6.06' => :dapper, '6.10' => :edgy, '7.04' => :feisty, '7.10' => :gutsy, '8.04' => :hardy, '8.10' => :intrepid, '9.04' => :jaunty, '9.10' => :karmic, '10.04' => :lucid, '10.10' => :maverick, '11.04' => :natty, '11.10' => :oneiric, '12.04' => :precise }, :debian => { '4.0' => :etch, '5.0' => :lenny, '6.0' => :squeeze, '7.0' => :wheezy }, :arch => {} }, :bsd => { :dragonfly => {}, :freebsd => {} } } end |