lib/travis/cli/init.rb in travis-1.5.7.travis.345.4 vs lib/travis/cli/init.rb in travis-1.5.7

- old
+ new

@@ -32,12 +32,11 @@ end attr_writer :travis_config def self.languages - pattern = File.expand_path("../init/*.yml", __FILE__) - Dir[pattern].map { |f| File.basename(f, '.yml') }.sort + Dir[asset_path('init/*.yml')].map { |f| File.basename(f, '.yml') }.sort end def help super("Available languages: #{self.class.languages.join(", ")}\n\n") end @@ -62,10 +61,10 @@ end private def template_name(language) - File.expand_path("../init/#{language}.yml", __FILE__) + asset_path "init/#{language}.yml" end def template(language) language = language.to_s.downcase language = LANGUAGE_MAPPING[language] || language \ No newline at end of file