module Travis
  module Build
    class Script
      module Addons
        class Firefox
          def initialize(script, config)
            @script = script
            @firefox_version = config.to_s
          end

          def before_install
            @script.fold('install_firefox') do |script|
              script.cmd "echo -e \"\033[33;1mInstalling Firefox v#@firefox_version\033[0m\"; ", assert: false, echo: false
              script.cmd "sudo mkdir -p /usr/local/firefox", assert: false
              script.cmd "sudo chown travis /usr/local/firefox", assert: false
              script.cmd "wget -O /tmp/firefox.tar.bz2 ftp://ftp.mozilla.org/pub/firefox/releases/#@firefox_version/linux-x86_64/en-US/firefox-#@firefox_version.tar.bz2", assert: false
              script.cmd "pushd /usr/local/firefox", assert: false
              script.cmd "tar xf /tmp/firefox.tar.bz2", assert: false
              script.cmd "sudo ln -s /usr/local/firefox/firefox /usr/local/bin/firefox", assert: false
              script.cmd "popd", assert: false
            end
          end
        end
      end
    end
  end
end


module Travis
  module Build
    class Script
      module Addons
        class Firefox
          def initialize(script, config)
            @script = script
            @firefox_version = config.to_s
          end

          def before_install
            @script.fold('install_firefox') do |script|
              script.cmd "echo -e \"\033[33;1mInstalling Firefox v#{@firefox_version}\033[0m\"; ", assert: false, echo: false
              script.cmd "sudo mkdir -p /usr/local/firefox", assert: false
              script.cmd "sudo chown travis /usr/local/firefox", assert: false
              script.cmd "wget -O /tmp/firefox.tar.bz2 ftp://ftp.mozilla.org/pub/firefox/releases/#{@firefox_version}/linux-x86_64/en-US/firefox-#{@firefox_version}.tar.bz2", assert: false
              script.cmd "pushd /usr/local/firefox", assert: false
              script.cmd "tar xf /tmp/firefox.tar.bz2", assert: false
              script.cmd "sudo ln -s /usr/local/firefox/firefox /usr/local/bin/firefox", assert: false
              script.cmd "popd", assert: false
            end
          end
        end
      end
    end
  end
end


Add {} around interpolated instance variables
Add {} around interpolated instance variables

This isn't required, but it makes the strings a little bit clearer.
