lib/navy/speak.rb in navy-1.0.4 vs lib/navy/speak.rb in navy-1.0.5
- old
+ new
@@ -65,16 +65,16 @@
end
def working_directory(path)
# just let chdir raise errors
path = File.expand_path(path)
- if config_file &&
- config_file[0] != ?/ &&
- ! File.readable?("#{path}/#{config_file}")
- raise ArgumentError,
- "config_file=#{config_file} would not be accessible in" \
- " working_directory=#{path}"
- end
+ # if config_file &&
+ # config_file[0] != ?/ &&
+ # ! File.readable?("#{path}/#{config_file}")
+ # raise ArgumentError,
+ # "config_file=#{config_file} would not be accessible in" \
+ # " working_directory=#{path}"
+ # end
Dir.chdir(path)
Navy::Admiral::START_CTX[:cwd] = ENV["PWD"] = path
end
private
\ No newline at end of file