lib/travis/cli/init.rb in travis-1.10.0.pre.rc3 vs lib/travis/cli/init.rb in travis-1.10.0.pre.rc4
- old
+ new
@@ -32,10 +32,11 @@
end
attr_writer :travis_config
def self.languages
- asset_path('init/*.yml').map { |f| File.basename(f, '.yml') }.sort
+ Dir[File.expand_path('init/*.yml', Travis::Tools::Assets::BASE)]
+ .map { |f| File.basename(f, '.yml') }.sort
end
def help
super("Available languages: #{self.class.languages.join(", ")}\n\n")
end