lib/view.rb in runeblog-0.0.78 vs lib/view.rb in runeblog-0.0.79
- old
+ new
@@ -1,11 +1,11 @@
require 'helpers-blog'
require 'runeblog'
class RuneBlog::View
attr_reader :name, :state
- attr_accessor :deploy
+ attr_accessor :deployer
def initialize(name)
raise "RuneBlog.blog is not set!" if RuneBlog.blog.nil?
@blog = RuneBlog.blog
@name = name
@@ -55,9 +55,9 @@
@deploy = RuneBlog::Deployment.new(user, server, root, path, proto)
end
def write_config
file = @blog.view.dir + "/deploy"
- File.open(file) {|f| f.puts [@user, @server, @root, @path, @proto] }
+ File.open(file, "w") {|f| f.puts [@user, @server, @root, @path, @proto] }
end
end